home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 98 / Skunkware 98.iso / src / fileutil / fileutils-3.16.tar.gz / fileutils-3.16.tar / fileutils-3.16 / ChangeLog < prev    next >
Text File  |  1997-01-26  |  183KB  |  5,050 lines

  1. Sun Jan 26 20:17:50 1997  Jim Meyering  <meyering@na-net.ornl.gov>
  2.  
  3.     * Version 3.16.
  4.  
  5.     * acconfig.h (strftime): Add #undef.  From Marcus Daniels.
  6.  
  7. Sat Jan 25 00:34:39 1997  Jim Meyering  <meyering@na-net.ornl.gov>
  8.  
  9.     * src/du.c (count_entry): Fix blatant bug (typo?) that made
  10.     --megabytes report numbers in units of kilobytes.
  11.     Reported by Galen Hazelwood.
  12.  
  13.     * src/cp.h: Remove now-unnecessary prototype for is_ancestor.
  14.  
  15.     * lib/Makefile.am (noinst_HEADERS): Add getdate.h.
  16.  
  17.     * src/cp-aux.c (is_ancestor): Remove function.
  18.     * src/cp.c (is_ancestor): Add function.
  19.  
  20.     * src/cp.h: Remove spurious extern dcl of htab.
  21.  
  22.     * m4/getgroups.m4: Move the code from configure.in into
  23.     this macro that resorts to looking for getgroups in -lbsd.
  24.     Set new shell variable, GETGROUPS_LIB (that callers should check),
  25.     if it is found there.
  26.     * configure.in: Check $GETGROUPS_LIB just after jm_FUNC_GETGROUPS.
  27.     (AC_CHECK_FUNCS): Remove getgroups.
  28.     Remove code that resorts to looking for getgroups in -lbsd.
  29.  
  30.     * configure.in (jm_FUNC_GNU_STRFTIME): Use it -- because ls
  31.     needs a version of strftime that supports the %e format and
  32.     pretty many systems lack that: NextStep 3.3, Mips Ultrix ?.?.
  33.     This is a little bit overkill (for now) in that if the strftime
  34.     in your C library doesn't have all features of GNU strftime (even
  35.     though it may support %e) ls will be linked with the version of
  36.     strftime provided with this package.  But for an upcoming release,
  37.     GNU ls will provide an option to allow the user to specify the
  38.     date format string -- and for that I want to make GNU strftime
  39.     the default in any case.  Think of this as an incentive to use
  40.     the GNU C library.
  41.  
  42. Fri Jan 24 23:36:00 1997  Jim Meyering  <meyering@na-net.ornl.gov>
  43.  
  44.     * lib/long-options.c (parse_long_options): Reset optind to zero
  45.     before just returning so that getopt internals get initialized from
  46.     the probably-new parameters when/if getopt is called later.
  47.     From Ulrich Drepper.
  48.  
  49. Mon Jan 20 06:52:09 1997  Jim Meyering  <meyering@na-net.ornl.gov>
  50.  
  51.     * configure.in (fu_cv_sys_truncating_statfs): Add preprocessor
  52.     guard to make sure that this test for Sun brokenness doesn't
  53.     get a false positive on any other type of system.  Eirik Fuller
  54.     reported that Linux 2.1.20 <sys/vfs.h> has a f_spare member in
  55.     the statfs struct.  And that triggered a false positive.
  56.  
  57. Thu Jan  9 06:23:18 1997  Jim Meyering  <meyering@na-net.ornl.gov>
  58.  
  59.     * m4/gettext.m4: Remove AC_ISC_POSIX.  From Karl Heuer.
  60.  
  61. Wed Jan  8 16:38:24 1997  Jim Meyering  <meyering@na-net.ornl.gov>
  62.  
  63.     * Version 3.15.
  64.  
  65.     * src/ls.c (print_long_format): Cast alloca return value to char*.
  66.  
  67.     * lib/getopt.c (_getopt_internal): Use `_', rather than the
  68.     (sometimes-)expansion `gettext'.
  69.  
  70. Tue Jan  7 22:49:55 1997  Jim Meyering  <meyering@na-net.ornl.gov>
  71.  
  72.     * lib/getopt.c: New (more POSIX compliant) version from GNU libc.
  73.     [_]: Define to gettext also if ENABLE_NLS is defined.
  74.     This is temporary.
  75.  
  76. Sun Jan  5 09:33:07 1997  Jim Meyering  <meyering@na-net.ornl.gov>
  77.  
  78.     * src/ls.c (print_long_format): Avoid making unnecessary copy of
  79.     date/time string.  Patch from Paul Eggert.
  80.     (print_long_format): NUL-terminate line of output.
  81.     (print_long_format): Detect and handle strftime failure
  82.     due to pathologically long strings in locale tables.
  83.     Patch from Paul Eggert.
  84.     (print_long_format): Change references to BIGBUF in use of
  85.     FPUTS macro to references to BUF.
  86.     Use 11 (not 20) bytes for mode string buffer.
  87.  
  88. Sat Jan  4 21:14:36 1997  Jim Meyering  <meyering@na-net.ornl.gov>
  89.  
  90.     * src/ls.c (print_long_format): Clean up vestiges of legacy
  91.     ctime-oriented code.  With internationalization and strftime,
  92.     you can't presume that %a expands to a 3-byte string.
  93.     Reported by Ross Ridge.
  94.     (print_long_format): Use POSIX-mandated %e (blank-padded numeric
  95.     day of month), not %d (the same number, but *zero*-filled).
  96.  
  97. Fri Jan  3 21:08:29 1997  Jim Meyering  <meyering@na-net.ornl.gov>
  98.  
  99.     * acconfig.h (getgroups): Add #undef.
  100.     From Marcus Daniels.
  101.  
  102. Thu Jan  2 21:16:16 1997  Jim Meyering  <meyering@na-net.ornl.gov>
  103.  
  104.     * lib/Makefile.am (EXTRA_DIST): Add getgroups.c.
  105.  
  106. Wed Jan  1 17:30:26 1997  Jim Meyering  <meyering@na-net.ornl.gov>
  107.  
  108.     * lib/getgroups.c: New file.
  109.  
  110.     * configure.in (AC_ARG_PROGRAM): Remove explicit use.
  111.     It's implicit in AM_INIT_AUTOMAKE.  From Wayne Stewart.
  112.     (list_mounted_fs): Fix typo (by declaring NUMSYS) in test for
  113.     getfsstat on osf1.  From hitchens@epa001.enet.dec.com.
  114.  
  115. Sun Dec 29 21:55:13 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  116.  
  117.     * configure.in (jm_FUNC_GETGROUPS): Use it.
  118.  
  119. Sat Dec 28 14:32:05 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  120.  
  121.     * src/ls.c: Two problems fixed by these changes from Joakim Rosqvist.
  122.     Quoting Joakim:
  123.     1) The "total" number and the size of the first file as
  124.     output from 'ls --color -s' did not get colorized according
  125.     to the "no"-argument in LS_COLORS. Fixed by adding a function
  126.     prep_non_filename_text which prints the C_LEFT C_NORM C_RIGHT
  127.     strings (or C_END). It is called from main before any text is
  128.     output, and from print_name_with_quoting after having output a
  129.     colorized filename.
  130.     2) If the "no"-argument of LS_COLORS is set, the terminal will be
  131.     set to print in that color after ls exits. The man-pages suggests
  132.     setting "no" and "fi" to the terminals default colors to avoid
  133.     the problem, but that would mean I can't use anything but the
  134.     default color for regular files and non-filename text. Fixed by
  135.     outputting C_LEFT immediately followed by C_RIGHT right before
  136.     exit, which restores the default color.
  137.  
  138. Fri Dec 27 17:29:02 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  139.  
  140.     * Makefile.am (aclocal.m4): No longer depend on acinclude.m4.
  141.  
  142.     * configure.in: AC_REQUIRE version 2.12 of autoconf.
  143.  
  144. Sun Dec 22 23:29:10 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  145.  
  146.     * acinclude.m4: Move macros to individual files in new directory, m4/.
  147.     See ChangeLog entries in sh-utils for the details.
  148.  
  149. Wed Dec 18 23:09:19 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  150.  
  151.     * src/dircolors.hin (ORPHAN): By default, color orphans red on
  152.     a black background.
  153.  
  154.     * src/dircolors.c (usage): Remove --print-data-base.
  155.     Now only --print-database remains.  Although it wasn't documented,
  156.     --print-data-base was still accepted.  But it made `--p', `--print',
  157.     `--print-data', etc. ambiguous.
  158.  
  159.     * src/ls.c (gobble_file): Stat symlinks also when printing with
  160.     color and set linkok to reflect existence of referent.
  161.     Patches from Joakim Rosqvist, James Antill, and Jesse Thilo.
  162.  
  163. Tue Dec 17 21:03:40 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  164.  
  165.     * src/system.h (ISDIGIT): Replace with smaller, faster edition
  166.     that yields nonzero only on ASCII digits.
  167.     (ISDIGIT_LOCALE): New macro, with same meaning that ISDIGIT
  168.     used to have.  From Paul Eggert.
  169.     * lib/backupfile.c (ISDIGIT): Likewise.
  170.     * lib/getdate.y (ISDIGIT): Likewise.
  171.  
  172.     * src/cp.c (ROOT_CHOWN_AFFECTS_SYMLINKS): New macro.
  173.     (DO_CHOWN): Take an additional parameter.
  174.     (LINK_CHOWN): Remove macro.
  175.     (copy): When preserving owner and group of a symlink, use
  176.     chown only if ROOT_CHOWN_AFFECTS_SYMLINKS and EUID == 0.
  177.     Otherwise, the chown would affect the file referenced through
  178.     the symlink.
  179.  
  180. Sat Dec 14 14:51:50 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  181.  
  182.     * acinclude.m4 (jm_SYS_PROC_UPTIME): Fix typo in cache variable
  183.     name for cross compiling.
  184.     Remove definitions of gettext-related macros.  The gettext
  185.     installation procedure installs corresponding .m4 files so that
  186.     aclocal will use them.
  187.  
  188. Wed Dec 11 19:34:22 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  189.  
  190.     * Version 3.14.
  191.  
  192. Tue Dec 10 00:14:24 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  193.  
  194.     * configure.in: Bump version to 3.13k.
  195.  
  196.     * src/install.c [_POSIX_VERSION]: Don't declare wait.  That
  197.     declaration conflicted with one in a system header file on
  198.     i386-pc-isc3.0, now that I've removed the AC_ISC_POSIX macro
  199.     and _POSIX_VERSION is no longer defined.
  200.     Reported by Karl Heuer.
  201.  
  202.     * configure.in (AC_ISC_POSIX): Remove kludgy macro.
  203.     Use this test instead:
  204.     (LIBS): Add -lcposix if it contains strerror.
  205.     Patch from Karl Heuer.
  206.  
  207.     * lib/Makefile.am (EXTRA_DIST): Add mktime.c.
  208.     Reported by Thomas Bushnell.
  209.     * (EXTRA_DIST): Add strftime.c to appease automake.
  210.     Although it's not used yet, it'll be used by ls's (to-be-done)
  211.     --format=FORMAT option.
  212.  
  213. Mon Dec  9 18:26:54 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  214.  
  215.     * lib/obstack.h: Include config.h.
  216.     [!HAVE_BCOPY && HAVE_MEMCPY && !defined (bcopy)]: Define bcopy
  217.     in terms of memcpy.  Reported by Marcus Daniels.
  218.  
  219.     * configure.in (LIBOBJS): After AC_FUNC_FNMATCH, add fnmatch.o
  220.     and define fnmatch to rpl_fnmatch if necessary.
  221.  
  222.     * acconfig.h (fnmatch): Add undef.
  223.  
  224.     * src/df.c (find_mount_point): Convert from K&R style header to ANSI.
  225.     Patch from Kaveh Ghazi.
  226.  
  227. Sun Dec  8 07:22:38 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  228.  
  229.     =========== Update for automake-1.1k.
  230.     * Makefile.am (AUTOMAKE_OPTIONS): Require 1.1k.
  231.     * configure.in (AM_CONFIG_HEADER): Use it.
  232.     (AC_OUTPUT): Remove stamp-h timestamping statement.
  233.     Now, AM_CONFIG_HEADER does it automatically.
  234.     * lib/Makefile.am (noinst_LIBRARIES): Rename to libfu.a as per
  235.     new automake requirement.
  236.     Rename fu_* variables to libfu_a_*.
  237.  
  238. Mon Dec  2 20:30:20 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  239.  
  240.     * configure.in (jm_FUNC_MKTIME): Use this instead of AM_FUNC_MKTIME.
  241.  
  242.     * src/system.h [!S_IXUGO] (S_IXUGO): Define it.
  243.  
  244.     * src/ls.c (print_color_indicator): Check the file's suffix only
  245.     if it's a regular file.
  246.     Reported by Santiago Vila Doncel.
  247.     (print_type_indicator): Use S_IXUGO instead of writing out
  248.     (S_IEXEC | S_IXGRP | S_IXOTH).
  249.     (length_of_file_name_and_frills): Likewise.
  250.  
  251. Sun Dec  1 13:07:39 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  252.  
  253.     * lib/getdate.y (date): Interpret the date, L/M/N, as YYYY/MM/DD
  254.     if L >= 1000, otherwise as MM/DD/YY.  With this change,
  255.     date --date=DATE accepts dates like those in an RCS log listing.
  256.  
  257. Sat Nov 30 22:11:42 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  258.  
  259.     * acinclude.m4: (jm_FUNC_MKTIME): New macro.  This is like
  260.     AM_FUNC_MKTIME, but with one addition: when it replaces the
  261.     function, it also redefines mktime to gnu_mktime.
  262.  
  263. Fri Nov 29 21:19:13 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  264.  
  265.     * src/install.c (copy_file): Allow installation from non-directory
  266.     (rather than only regular) files.  Suggestion from Charles Karney.
  267.  
  268.     * src/df.c (main): Accept -F as a synonym for -t for compatibility
  269.     with Solaris.  From Peter Eriksson.
  270.  
  271.     * src/ls.c (main): Close stdout and check result, in case any
  272.     deferred writes fail.
  273.     Use EXIT_SUCCESS and EXIT_FAILURE in exit and usage calls.
  274.  
  275. Thu Nov 28 13:10:22 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  276.  
  277.     * src/df.c (find_mount_point): Use strip_trailing_slashes and dirname
  278.     instead of open-coding them.  When given FILE containing no slashes,
  279.     chdir to the directory containing it (the current directory) rather
  280.     than to `..'.
  281.  
  282.     Tue Nov  5 14:51:56 1996  Miles Bader  <miles@gnu.ai.mit.edu>
  283.  
  284.     * src/df.c (find_mount_point): Use save_cwd/restore_cwd.
  285.     "save-cwd.h": New include.
  286.  
  287.     Wed Oct 30 00:21:16 1996  Miles Bader  <miles@gnu.ai.mit.edu>
  288.  
  289.     * lib/fsusage.c (get_fs_usage): If DISK is 0 and we needed to use
  290.     it, return -1 with 0 in ERRNO.
  291.     * src/df.c (show_dev): Deal with null values for DISK and FSTYPE,
  292.     including interpreting special 0 errno return from get_fs_usage.
  293.     (show_point): Don't fail if we can't find a mount entry for POINT,
  294.     just call show_dev with 0 values and let it fail if necessary.
  295.     (main): Require a non-zero MOUNT_LIST only if showing all filesystems.
  296.     (find_mount_point): New function.
  297.     (xgetcwd): New declaration.
  298.  
  299. Thu Nov 28 00:31:11 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  300.  
  301.     * configure.in (AM_GNU_GETTEXT): Renamed from ud_GNU_GETTEXT
  302.     for gettext-0.10.25.
  303.  
  304. Tue Nov 26 23:24:13 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  305.  
  306.     * acinclude.m4: Update with macros from gettext-0.10.25.
  307.  
  308. Sun Nov 24 22:43:24 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  309.  
  310.     * acconfig.h (mktime): Add undef for my enhanced (beyond automake's
  311.     1.1g version of) AM_FUNC_MKTIME.
  312.  
  313.     * acinclude.m4 (AM_FUNC_GETLINE): Use am_, not su_ prefix for
  314.     local/cache variables.
  315.  
  316. Sat Nov 23 16:11:59 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  317.  
  318.     * lib/Makefile.am (EXTRA_DIST): Add getline.c now that getline
  319.     isn't mentioned in AC_REPLACE_FUNCS.
  320.  
  321.     * lib/Makefile.am (EXTRA_DIST):
  322.  
  323.     * chgrp.c (usage): Alphabetize option descriptions the way
  324.     sort -f would.
  325.     * chown.c (usage): Likewise.
  326.     * cp-aux.c (usage): Likewise.
  327.     * df.c (usage): Likewise.
  328.     * install.c (usage): Likewise.
  329.     * ln.c (usage): Likewise.
  330.     * ls.c (usage): Likewise.
  331.     * mkdir.c (usage): Likewise.
  332.     * mv.c (usage): Likewise.
  333.     * rm.c (usage): Likewise.
  334.     From Karl Berry.
  335.  
  336. Fri Nov 22 22:14:10 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  337.  
  338.     * configure.in (AC_REPLACE_FUNCS): Don't try to replace getline this
  339.     way.  AM_FUNC_GETLINE does it now.
  340.     (AM_FUNC_GETLINE): Use it here.
  341.  
  342.     * src/cp.c (copy): With -i and not -f, prompt for any type of
  343.     (non-directory) source file before overwriting an existing target.
  344.     Reported by Mark A. Thomas and Emile LeBlanc.
  345.  
  346. Tue Nov 19 23:10:32 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  347.  
  348.     * configure.in (AM_SANITY_CHECK_CC): Remove it.  Autoconf-2.11
  349.     has this built-in.
  350.     (AC_FUNC_FNMATCH): Use this macro (new with autoconf-2.11) instead
  351.     of open-coding it.
  352.  
  353. Sun Nov 17 20:53:00 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  354.  
  355.     * src/touch.c: Remove unused declaration of mktime.  From Tony Leneis.
  356.  
  357. Mon Nov  4 23:18:03 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  358.  
  359.     * configure.in (test for group_member): Handle it separately
  360.     so I can keep the hyphen (not the underscore) in the filename.
  361.  
  362.     * lib/rename.c: New version from Franτois Pinard.
  363.  
  364. Sat Nov  2 07:05:36 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  365.  
  366.     * src/ls.c (gobble_file): Set linkok for non-orphaned symlinks.
  367.     From Bauke Jan Douma.
  368.     (gobble_file): Initialize linkok.
  369.     With these two changes, ls --color should display orphaned symlinks
  370.     as blinking text on terminals that support it.
  371.  
  372.     * configure.in (ALL_LINGUAS): Add Spanish (es).
  373.  
  374.     * doc/Makefile.am (MAKEINFO): Set to makeinfo --no-split.
  375.     Otherwise, the generated info files have names longer than
  376.     the 14-byte max of some old systems.
  377.     Reported by Karl Heuer.
  378.  
  379. Tue Oct 29 06:49:16 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  380.  
  381.     * src/ls.c (decode_switches): Make -A set really_all_files to zero
  382.     as well as setting all_files to 1.  With this change, ls -f -A prints
  383.     everything but . and .., unsorted.  Before, the -A was effectively
  384.     ignored.  From Karl Berry.
  385.  
  386. Tue Oct 22 07:00:00 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  387.  
  388.     * src/Makefile.am (dircolors.h): Depend on dcgen only in maintainer
  389.     mode.
  390.  
  391. Mon Oct 21 16:52:28 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  392.  
  393.     * lib/Makefile.am (EXTRA_DIST): Remove group-member.c.
  394.     Add (temporary hack to work around bug in automake-1.1f) mvdir.c and
  395.     rmdir.c.
  396.  
  397.     * configure.in: Remove hack that created link from group_member.c
  398.     to group-member.c.
  399.  
  400.     * lib/group_member.c: New file.  Renamed from group-member.c.
  401.     * lib/group-member.c: Delete.
  402.  
  403.     * src/dircolors.hin: Comment out DOS-style suffixes.
  404.  
  405. Sun Oct 20 13:49:25 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  406.  
  407.     * lib/Makefile.am (INCLUDES): Add -I../intl.  Reported by Eric Backus.
  408.  
  409.     * Makefile.am (AUTOMAKE_OPTIONS): Set to `gnits'.
  410.     (EXTRA_DIST): Remove.
  411.  
  412.     * configure.in: Remove README_ALPHA related code.  Automake takes
  413.     care of it automatically now when in gnits mode.
  414.  
  415. Sun Oct 13 14:02:41 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  416.  
  417.     * src/ls.c (print_long_format): Use strftime of localtime
  418.     (not ctime) to produce the date/time in long listings.
  419.     From Rafal Maszkowski.
  420.  
  421. Sat Oct 12 18:20:38 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  422.  
  423.     * lib/mountlist.c (fstype_to_string): Handle fstypes of freebsd.
  424.     From Arne Henrik Juul.
  425.  
  426. Thu Oct 10 23:47:34 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  427.  
  428.     * lib/Makefile.am (EXTRA_DIST): Remove posixtm.y and getdate.y.
  429.     (fu_SOURCES): Put them here instead.
  430.     Remove rules for building getdate.c and posixtm.c;  now automake
  431.     generates those rules.
  432.     * lib/ylwrap: New file.
  433.     * lib/interlock: New file.
  434.  
  435. Wed Oct  9 06:51:47 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  436.  
  437.     * src/ls.c (usage): Improve brief descriptions of --sort and --time.
  438.     From Franτois Pinard.
  439.  
  440.     * lib/rpmatch.c [!WITH_REGEX]: Include rx.h.
  441.     From Andreas Schwab.
  442.  
  443. Mon Oct  7 23:31:10 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  444.  
  445.     * lib/Makefile.am (EXTRA_DIST): Remove names of several files
  446.     that automake adds automatically.
  447.     (fu_SOURCES): Likewise.
  448.     (fu_DEPENDENCIES): Depend on fu_LIBADD.
  449.  
  450.     * src/chown.c (usage): Improve usage message.
  451.     * src/cp-aux.c (usage): Likewise.
  452.     * src/ls.c (usage): Likewise.
  453.     * src/install.c (strip): Improve diagnostic.
  454.     From Ulisses Alonso.
  455.  
  456.     * src/Makefile.am (noinst_HEADERS): Add dircolors.h.
  457.     (dircolors.h): Always depend on dcgen.
  458.  
  459. Sat Oct  5 08:07:03 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  460.  
  461.     * acinclude.m4 (AM_FUNC_ERROR_AT_LINE): New macro.
  462.     (AM_FUNC_OBSTACK): New macro.
  463.  
  464.     * configure.in (AM_FUNC_ERROR_AT_LINE): Use this instead of
  465.     open-coding it.
  466.     (AM_FUNC_OBSTACK): Likewise.
  467.  
  468.     * lib/filemode.c (ftypelet) [HAVE_ST_DM_MODE]: Add support for
  469.     Cray's migrated dmf files.
  470.     * src/ls.c (print_long_format) [HAVE_ST_DM_MODE]: Likewise.
  471.     * acconfig.h [HAVE_ST_DM_MODE]: New macro.
  472.     From Johan Danielsson.
  473.  
  474.     * acinclude.m4 (AC_HEADER_SYS_TIME_H): New macro.
  475.     (AM_FUNC_MKTIME): Require AC_HEADER_SYS_TIME_H so that configure's
  476.     checking... messages don't get nested.
  477.  
  478.     * configure.in (GNU_PACKAGE): New variable.
  479.     (PACKAGE_VERSION): Remove it.
  480.  
  481.     * acconfig.h (GNU_PACKAGE): New variable.
  482.     (PACKAGE_VERSION): Remove now-unused variable.
  483.  
  484.     * src/*.c: Update --version output to conform to the coding standard.
  485.  
  486. Wed Oct  2 21:44:36 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  487.  
  488.     * src/dircolors.c (usage): Deprecate --print-data-base even though
  489.     that's the way GNU make writes it.  `database' is one word.
  490.     Add description of FILE argument.
  491.  
  492. Tue Oct  1 12:56:23 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  493.  
  494.     * lib/Makefile.am (fu_SOURCES): Remove getline.c.
  495.     (EXTRA_DIST): Add getline.c.
  496.     Reported by Franτois Pinard.
  497.  
  498. Mon Sep 30 20:08:45 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  499.  
  500.     * src/Makefile.am (dircolors.h): Don't depend on anything unless
  501.     in maintainer-mode.  Reported by Marcus Daniels.
  502.  
  503.     * lib/path-concat.c (path_concat): Use K&R style function definition.
  504.  
  505. Sun Sep 29 22:00:44 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  506.  
  507.     * configure.in (ALL_LINGUAS): Add slovenian (sl).
  508.  
  509.     * src/cp-aux.c (usage): Take only one argument -- like all the other
  510.     usage functions.
  511.  
  512.     * src/cp.c (do_copy): Give better error message when copying multiple
  513.     files and the last one is not a directory.  From Karl Berry.
  514.     Call error (0, 0, ... then usage (1) -- instead of calling usage
  515.     with two arguments.
  516.  
  517. Sat Sep 28 13:16:29 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  518.  
  519.     * lib/getversion.c (backup_types): Declare const.
  520.     (backup_args): Likewise.
  521.  
  522. Sat Sep 21 10:22:28 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  523.  
  524.     * src/dircolors.c (xstrndup): Use message that's the same as the one
  525.     you get from e.g., xmalloc.  Reported by Santiago Vila.
  526.  
  527. Thu Sep 19 22:13:31 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  528.  
  529.     * lib/Makefile.am (fu_SOURCES): Remove regex.c and rx.c.
  530.     (EXTRA_DIST): Put them here instead.
  531.  
  532.     * configure.in ($PACKAGE, $VERSION): Don't AC_DEFINE_UNQUOTED these.
  533.     AM_INIT_AUTOMAKE now does it (as of automake-1.1e).
  534.  
  535.     * lib/Makefile.am (fu_SOURCES): Move getopt.c and getopt1.c back to
  536.     here fro EXTRA_DIST.
  537.     * configure.in (AC_REPLACE_GNU_GETOPT): Remove it -- it's not
  538.     necessary.
  539.  
  540.     * acinclude.m4 (AM_SANITY_CHECK_CC, AC_SYS_POSIX_TERMIOS,
  541.     AM_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Remove definitions.
  542.     Now automake's aclocal includes them.
  543.  
  544. Sun Sep 15 23:08:48 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  545.  
  546.     * Makefile.am (EXTRA_DIST): Remove acinclude.m4.
  547.  
  548. Mon Sep  9 21:39:49 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  549.  
  550.     * src/cp.c (do_copy): Describe in a little more detail the code
  551.     that makes `cp non-directory file/' (eventually) fail.
  552.  
  553. Sun Sep  8 12:54:31 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  554.  
  555.     * src/dircolors.c (usage): Refer to LS_COLORS, not LS_COLOR.
  556.     From Santiago Vila Doncel.
  557.  
  558.     * src/cp.c (do_copy): Set backup_type to `none' only *after*
  559.     calling to find_backup_file_name.  Reported by Eli Zaretskii.
  560.  
  561. Sat Sep  7 12:25:42 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  562.  
  563.     * lib/regex.c, lib/regex.h: New files.
  564.     * lib/rx.c, lib/rx.h: New files.
  565.  
  566.     * lib/Makefile.am (INCLUDES): Add -I../intl so compiler will find
  567.     libintl.h for rpmatch.c.
  568.  
  569.     * src/system.h: Add comments justifying IS* versions of ctype.h macros.
  570.  
  571. Thu Sep  5 18:12:44 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  572.  
  573.     * src/chmod.c (main): Don't set verbose flag for --changes.
  574.     (change_file_mode): If chmod succeeds and --changes was given,
  575.     give a diagnostic describing the new permissions.
  576.     Reported by Philippe Schnoebelen (phs@fing.edu.uy).
  577.  
  578.     * src/cp.c (do_copy): When concatenating DEST (with a trailing `/')
  579.     and the basename part of non-directory SOURCE, don't add a slash
  580.     between them.
  581.  
  582. Wed Sep  4 21:42:32 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  583.  
  584.     * lib/rpmatch.c: Make sure NULL is defined by including stddef.h
  585.     (if STDC_HEADERS || _LIBC) or simply defining it (otherwise).
  586.     Include sys/types.h for definition of size_t needed by regex.h.
  587.  
  588.     * lib/Makefile.am (fu_SOURCES): Add regex.c and rx.c.
  589.     (noinst_HEADERS): Add regex.h and rx.h.
  590.  
  591.     * configure.in (AM_SANITY_CHECK_CC): Use it.
  592.     (AM_WITH_REGEX): Use it.
  593.  
  594.     * acconfig.h (WITH_REGEX): Add it.
  595.  
  596. Tue Sep  3 08:13:09 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  597.  
  598.     * lib/rpmatch.c (rpmatch): Set yesexpr to "^[yY]" and noexpr to
  599.     "^[nN]"; this conforms to POSIX.2. From Paul Eggert
  600.     <eggert@twinsun.com>.
  601.  
  602. Mon Sep  2 10:59:10 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  603.  
  604.     * POTFILES.in: Add lib/rpmatch.c.
  605.  
  606.     * lib/rpmatch.c (ENABLE_NLS): Include libintl.h and define _ to
  607.     gettext.
  608.  
  609.     * src/*.c (usage): Tell where to report bugs.
  610.  
  611. Sat Aug 31 18:48:18 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  612.  
  613.     * src/touch.c (utime_now): Protoize.
  614.     Reported by David S. Miller (davem@caip.rutgers.edu).
  615.  
  616. Sun Aug 25 22:43:15 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  617.  
  618.     * acinclude.m4 (AM_FUNC_MKTIME): New macro.
  619.     * configure.in (AM_FUNC_MKTIME): Use it.
  620.     (AC_REPLACE_FUNCS): Remove mktime.
  621.  
  622. Wed Aug 21 23:17:04 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  623.  
  624.     * src/Makefile.am (EXTRA_DIST): Remove ansi2knr.1 and ansi2knr.c.
  625.     Automake includes them automatically.
  626.  
  627.     * configure.in (AM_INIT_AUTOMAKE): Use it.
  628.     (AM_PROG_INSTALL): Remove.  AM_INIT_AUTOMAKE does this.
  629.     (AC_PROG_MAKE_SET): Likewise.
  630.  
  631. Sun Aug 18 09:52:39 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  632.  
  633.     * configure.in (jm_MAINTAINER_MODE, fp_C_PROTOTYPES): Rename with
  634.     AM_ prefix for latest automake/aclocal.
  635.  
  636.     * lib/Makefile.am (noinst_HEADERS): Add path-concat.h.
  637.     (fu_SOURCES): Add path-concat.c.
  638.  
  639.     * src/mv.c: Include path-concat.h.
  640.     (movefile): Use path_concat instead of open-coding its functionality.
  641.     Declare pointer parameters const as appropriate.
  642.  
  643.     * src/cp.c: Include path-concat.h.
  644.     (do_copy): Check path_concat return value.
  645.     (path_concat): Remove function.
  646.  
  647.     * lib/path-concat.h: New file.
  648.     * lib/path-concat.c (path_concat): New file.  Just like the function
  649.     from cp.c except the stand-alone version uses malloc instead of
  650.     xmalloc.
  651.  
  652.     * configure.in (ALL_LINGUAS): Add Dutch (nl).
  653.  
  654. Fri Aug 16 21:59:24 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  655.  
  656.     * src/chgrp.c (parse_group): Don't abort when given a group number
  657.     larger than INT_MAX.  Fix bug whereby root could run
  658.     `chgrp INVALID-GROUP FILE' and it wouldn't fail, but rather would
  659.     change FILE's group to some indeterminate value.  This problem
  660.     was reported as Debian Bug#4119 via Erick Branderhorst
  661.     (branderh@IAEhv.nl).
  662.     Declare pointer parameters const as appropriate.
  663.  
  664. Thu Aug  1 22:12:15 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  665.  
  666.     * src/system.h (ST_NBLOCKS) [_CRAY]: Special case for Cray.
  667.     * lib/fsusage.c (get_fs_usage) [STAT_STATFS4] [_CRAY]: Define
  668.     f_bavail to f_bfree.
  669.     From Johan Danielsson.
  670.  
  671. Wed Jul 31 23:39:23 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  672.  
  673.     * src/ln.c [LINK_TYPE]: Remove macro.  NLS messages aren't
  674.     extracted from macros.  Reported by Santiago Vila.
  675.     (link_type_string): New global variable to be used instead of
  676.     LINK_TYPE.
  677.     (main): Set it here.
  678.     (do_link): Use it (instead of macro) here.
  679.  
  680. Tue Jul 30 23:24:18 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  681.  
  682.     * configure.in (AC_CHECK_HEADERS): Add sys/fs/s5param.h.
  683.     * lib/fsusage.c [HAVE_SYS_FS_S5PARAM_H]: Include sys/fs/s5param.h
  684.     to work around bug in sys/filsys.h of Fujitsu UXP/V.
  685.     From by Johan Danielsson.
  686.  
  687.     * src/cp.c (DO_CHOWN): New macro -- derived from code in copy.
  688.     (copy): Use DO_CHOWN to assure that any newly-created symbolic
  689.     links have proper owner and group.
  690.  
  691. Sat Jul 27 17:22:14 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  692.  
  693.     * src/system.h (bindtextdomain) [!ENABLE_NLS]: Undefine to avoid
  694.     redefinition warnings on solaris.
  695.     (textdomain) [!ENABLE_NLS]: Likewise.
  696.  
  697. Thu Jul 25 21:10:42 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  698.  
  699.     * src/chgrp.c (main): Fix typo in getopt_long string: s/n/h/.
  700.     Reported by Ken Pizzini.
  701.  
  702. Wed Jul 24 22:24:37 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  703.  
  704.     * src/dircolors.c (usage): Remove -h.  It is not an option.
  705.     Reported by Ulrich Drepper.
  706.  
  707. Sun Jul 21 11:58:48 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  708.  
  709.     * configure.in (AC_CHECK_HEADERS): Add sys/timeb.h for lib/getdate.y.
  710.     This was a problem for SCO OSR5.  From Bela Lubkin <belal@sco.com>.
  711.     (statvfs test): Arrange for this test to fail (as it should) for
  712.     SCO OSR5.  Suggestion from Bela Lubkin.
  713.  
  714.     * src/Makefile.am (BUILT_SOURCES): Remove @MAINT@.
  715.     (dircolors.h): Remove @MAINT@.  These prevented `make distcheck'
  716.     from working sometimes.
  717.  
  718.     * lib/yesno.c (yesno) [!HAVE_RPMATCH]: Remove function since we'll
  719.     always use the rpmatch-based version.
  720.     Declare rpmatch.
  721.  
  722.     * lib/rpmatch.c [STDC_HEADERS]: Guard inclusion of stdlib.h.
  723.     (_) [!_]: Define it.
  724.     (try): Add RESPONSE parameter.
  725.     (rpmatch): Update caller.
  726.     Anchor regular expressions to beginning of string.
  727.  
  728.     * configure.in (AC_CHECK_FUNCS): Don't check rpmatch.
  729.  
  730.     * acconfig.h (HAVE_OBSTACK): Undef it.
  731.  
  732.     The following is from Ulrich Drepper.
  733.  
  734.     * configure.in (AC_REPLACE_FUNCS): Add rpmatch.
  735.     * lib/Makefile.am (EXTRA_DIST): Add rpmatch.c.
  736.     * lib/rpmatch.c: New file.
  737.     * lib/yesno.c (yesno): New rpmatch-based version of the function.
  738.     * config.h.in (HAVE_RPMATCH): Undef it.
  739.  
  740.     * lib/Makefile.am (EXTRA_DIST): Put error.c and obstack.c here...
  741.     (fu_SOURCES): Instead of here.
  742.  
  743.     * configure.in (AC_CHECK_FUNCS): Add rpmatch.
  744.     Add checks for error_at_line and obstacks so systems with GNU libc
  745.     don't compile and link with distributed error.c and obstack.c.
  746.  
  747.     * configure.in (AC_REPLACE_FUNCS): Replace getline.c.
  748.     Add related check for the getdelim function.  As done in gettext.
  749.  
  750. Sat Jul 20 17:01:56 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  751.  
  752.     * lib/Makefile.am (fu_SOURCES): Remove error.c, and obstack.c.
  753.     (EXTRA_DIST): Add error.c, and obstack.c.
  754.  
  755.     * configure.in (PACKAGE_VERSION): Use space instead of hyphen to
  756.     separate PACKAGE and VERSION.
  757.  
  758. Fri Jul 19 23:28:36 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  759.  
  760.     * src/cp.c (path_concat): Rewrite to return new parameter.
  761.     (do_copy): Update uses of path_concat to use new parameter.
  762.     Use that new pointer to compute correct offset for make_path_private.
  763.     Before, cp --recursive --parents SRC DEST failed when SRC was
  764.     an absolute file name.  E.g.,
  765.       % cd /tmp; rm -rf d f; mkdir d; touch f; cp -PR /tmp/f d
  766.       cp: tmp: No such file or directory
  767.     Reported by Horst von Brand vonbrand@sleipnir.valparaiso.cl.
  768.  
  769. Thu Jul 18 21:58:51 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  770.  
  771.     * src/install.c [_AIX]: Add #pragma alloca.
  772.     From Bernd Leibing <bernd.leibing@rz.uni-ulm.de>.
  773.  
  774.     * src/chgrp.c (main): Initialize for internationalized message support:
  775.     call setlocale, bindtextdomain, and textdomain.  Reported by
  776.     Michel Robitaille <robitail@IRO.UMontreal.CA>.
  777.  
  778. Wed Jul 17 22:37:40 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  779.  
  780.     * configure.in (ALL_LINGUAS): Add polish (pl).
  781.  
  782. Mon Jul 15 23:42:57 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  783.  
  784.     * Many files: Update FSF address.
  785.  
  786. Sun Jul 14 07:53:45 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  787.  
  788.     * src/du.c (usage): Sort option descriptions in dictionary order.
  789.  
  790. Sat Jul 13 07:34:24 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  791.  
  792.     * src/dircolors.c (long_options): Add missing last line of NULL
  793.     entries.  From Ralph Loader <loader@maths.ox.ac.uk>.
  794.  
  795. Thu Jul 11 21:50:48 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  796.  
  797.     * Version 3.13.
  798.  
  799.     * dircolors.1: New file -- but just a pointer to texinfo docs.
  800.     * man/Makefile.am (man_MANS): Add dircolors.1.
  801.  
  802.     * configure.in (VERSION): Bump to 3.13.
  803.  
  804. Wed Jul 10 22:57:29 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  805.  
  806.     * aclocal.m4 (fp_PROG_CC_STDC): Include sys/stat.h in test program
  807.     so that DYNIX/ptx V4.1.3 doesn't use `-Xc -D__EXTENSIONS__' -- with
  808.     those options on that system, sys/stat.h gets compile errors.
  809.     With help from Marcus Daniels.
  810.  
  811.     * getopt.c: Update from gettext-0.10.23.
  812.     * getopt1.c: Likewise.
  813.     * getopt.h: Likewise.
  814.  
  815. Tue Jul  9 20:19:44 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  816.  
  817.     * src/dircolors.c (usage): Improve --help message.  From Karl Berry.
  818.     (long_options): Add print-data-base and print-database.
  819.  
  820.     * src/dircolors.c (dc_parse_stream): Don't give `unrecognized keyword'
  821.     message unless we've processed a matching TERM directive.  Reported
  822.     by Karl Berry and Franτois Pinard.
  823.  
  824.     * src/install.c (UID_T_MAX): Use `(unsigned long)1' rather than
  825.     `(uid_t)1' to avoid problems on systems where uid_t is signed.
  826.     (GID_T_MAX): Likewise for gid_t.
  827.     From Kjetil Torgrim Homme <kjetilho@ifi.uio.no>.
  828.  
  829. Sun Jul  7 22:40:08 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  830.  
  831.     * src/ls.c: Change initial colors for `color_indicator' to match
  832.     those currently in dircolors.hin.  From Joshua Cowan.
  833.  
  834.     * src/dircolors.hin: Recognize more filename extensions.
  835.     From Joshua Cowan.
  836.  
  837.     * src/Makefile.am (CLEANFILES): Add dcgen.  From Joshua Cowan
  838.     <jcowan@jcowan.reslife.okstate.edu>.
  839.  
  840.     * src/Makefile.am (MAINTAINERCLEANFILES): Add dircolors.h.
  841.  
  842.     * configure.in (AM_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Use it.
  843.     * acconfig.h [GWINSZ_IN_SYS_IOCTL]: Add #undef.
  844.  
  845.     * src/ls.c: Include termios.h.
  846.     Guard inclusion of sys/ioctl.h with #ifdef GWINSZ_IN_SYS_IOCTL,
  847.     rather than HAVE_SYS_IOCTL_H.  Modelled after sh-utils' stty.c
  848.     at suggestion from Chip Bennett <BennettC@j64.stratcom.af.mil>
  849.     to make ls adjust its idea of screen width upon window resize
  850.     on systems (SunOS, Solaris) where TIOCGWINSZ is defined in
  851.     termios.h, and not sys/ioctl.h.
  852.  
  853.     * aclocal.m4 (AM_SYS_POSIX_TERMIOS): New macro, derived from test
  854.     in the configure.in from sh-utils.
  855.     (AM_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Likewise.
  856.  
  857. Sat Jul  6 12:46:27 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  858.  
  859.     * src/cp-aux.c (usage): Factor out backup-related text into
  860.     separate string/printf statement so translators deal with only
  861.     one corresponding string in .pot file.
  862.     * src/install.c (usage): Likewise.
  863.     * src/ln.c (usage): Likewise.
  864.     * src/mv.c (usage): Likewise.
  865.     Suggestion from Santiago Vila Doncel.
  866.  
  867.     * configure.in (AC_REPLACE_FUNCS): Add group_member.
  868.     (AC_LINK_FILES): Create link lib/group_member.c to lib/group-member.c.
  869.     * lib/Makefile.am (fu_SOURCES): Remove group-member.c.
  870.     (EXTRA_DIST): Add group-member.c here.
  871.  
  872. Fri Jul  5 22:16:13 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  873.  
  874.     * src/dircolors.c [!STDC_HEADERS]: Declare free.
  875.     From Marcus Daniels.
  876.  
  877. Thu Jul  4 12:34:50 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  878.  
  879.     * src/dd.c (usage): Remove space before newline in usage message.
  880.     * src/mknod.c (usage): Likewise.
  881.     * src/mv.c (usage): Likewise.
  882.  
  883.     * src/Makefile.am (libexec_PROGRAMS): Regenerate using patched
  884.     automake-1.0 to work around rm -f bug on Solaris2.4.
  885.     Reported by Kaveh Ghazi.
  886.  
  887.     * src/ls.c: Make `dir --version' and `vdir --version' print their
  888.     names, not `ls'.
  889.     Reported by Ulrich Drepper.
  890.  
  891. Wed Jul  3 17:41:15 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  892.  
  893.     * src/dircolors.c: Include sys/types.h before system.h.
  894.     From Jim Blandy (jimb@cyclic.com).
  895.  
  896.     * src/chgrp.c [!MAXUID]: Define after inclusion of system.h to avoid
  897.     warning about redefinition on SunOS4, Solaris2.4 and SGI-irix5.3.
  898.     From Kaveh Ghazi.  Also, Santiago Vila Doncel reported that defining
  899.     MAXUID before including system.h caused a compilation failure on some
  900.     ConvexOS system.
  901.  
  902. Tue Jul  2 22:56:03 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  903.  
  904.     * configure.in (VERSION): Bump to 3.12q.
  905.  
  906.     * src/system.h [!EXIT_SUCCESS]: Define it.
  907.     [!EXIT_FAILURE]: Define it.
  908.  
  909.     * lib/strndup.c (strndup): Include stdio.h and sys/types.h to
  910.     get definition of NULL and size_t on SunOS4.1.3.
  911.  
  912. Mon Jul  1 23:47:29 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  913.  
  914.     * src/ln.c (do_link): Update messages to ease translation.
  915.     Suggestion from Santiago Vila.
  916.  
  917. Sun Jun 30 16:41:45 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  918.  
  919.     * src/install.c (usage): Fix typo, 3nd->3rd, in usage message.
  920.     From Santiago Vila Doncel.
  921.  
  922. Sat Jun 29 00:33:31 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  923.  
  924.     * configure.in (PACKAGE_VERSION): Add `GNU ' prefix so we see
  925.     it in the output of --version.  Reported by RMS.
  926.  
  927.     * src/Makefile.am (BUILT_SOURCES): Guard dependency on dircolors.h
  928.     with @MAINT@ so it won't be removed with a casual disctlean.
  929.     (EXTRA_DIST): Add dcgen.pl and dircolors.hin.
  930.  
  931. Fri Jun 28 22:56:00 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  932.  
  933.     * src/dircolors.c (dc_parse_stream): Move `enum states' dcl into
  934.     this function.
  935.  
  936.     * src/ln.c (do_link): Allow `ln -sf --backup k k' to succeed in
  937.     creating the self-referential symlink, since doing so doesn't
  938.     remove the source but merely renames it.
  939.  
  940. Wed Jun 26 06:58:58 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  941.  
  942.     * ln.c (same_name): New function.
  943.     (do_link): Use it to test reliably whether A and B (from
  944.     ln --force A B) are hard links to the same file.
  945.     From Andreas Schwab.
  946.  
  947. Tue Jun 25 00:03:43 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  948.  
  949.     * lib/getline.c: New file.
  950.     * lib/getline.h: New file.
  951.     * lib/Makefile.am (fu_SOURCES): Add getline.c.
  952.     (noinst_HEADERS): Add getline.h.
  953.  
  954. Mon Jun 24 22:39:02 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  955.  
  956.     * configure.in (AC_REPLACE_FUNCS): Add strndup.
  957.     (AC_PATH_PROG): Check for perl.
  958.  
  959.     * ls.c (decode_switches): Allow 0 as argument to --tabsize (-T) option.
  960.     Interpret as a directive to use no TAB characters to separate columns.
  961.     (indent): Handle TABSIZE == 0.
  962.  
  963.     * dircolors.c (dc_parse_stream): Remove spurious newline in
  964.     error message.
  965.     (dc_parse_stream): Give `unrecognized keyword' diagnostic for
  966.     misspelled `TERM' keyword as well as for others.
  967.  
  968. Sun Jun 23 12:58:32 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  969.  
  970.     * dircolors.hin: New file.
  971.     * dcgen.pl: New file.
  972.     * src/Makefile.am (dircolors.h): Add a rule to create this file.
  973.     (dcgen): Likewise.
  974.  
  975.     * dircolors.c (parse_line): Rewrite to avoid modifying LINE.
  976.     Put LINE first in parameter list.
  977.     Adjust caller.
  978.     (dc_parse_stream): Free KEYWD and ARG.
  979.     (main): Give diagnostic for unreasonable combinations of
  980.     options/arguments.
  981.  
  982.     * lib/Makefile.am (EXTRA_DIST): Add strndup.c.
  983.     * configure.in (AC_REPLACE_FUNCS): Add strndup.
  984.     * strndup.c: New file.  From id-utils-3.0k.
  985.     (strndup): Deansify.
  986.     [!STDC_HEADERS]: Include string.h and stdlib.h.
  987.  
  988. Sat Jun 22 16:57:53 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  989.  
  990.     * dircolors.c: Major overhaul.  No longer read from /etc/DIR_COLORS
  991.     or from ~/.dircolors.  Defaults are now compiled in.  If you specify
  992.     a file on the command line, it is used instead of the compiled-in
  993.     defaults.
  994.     (main): New option --print-database (-p).
  995.     Detect write failure.
  996.     Add --bourne-shell and --c-shell aliases for --sh and --csh resp.
  997.  
  998. Tue Jun 18 20:54:05 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  999.  
  1000.     * cp.c (copy_reg): Cast both sides of comparison to size_t
  1001.     to avoid a warning about `comparison between signed and unsigned'
  1002.     from gcc -Wall.
  1003.     Declare pointer parameters const as appropriate.
  1004.  
  1005.     * ln.c (do_link): Refine last change so we don't disallow commands
  1006.     like `ln --force A B' when A and B are hard links to the same file.
  1007.     See comments in the source.  Reported by Erik Naggum <erik@naggum.no>
  1008.     and Andreas Schwab.
  1009.  
  1010.     * ls.c (decode_switches): Correct typo in error messages:
  1011.     enironment -> environment.  From Santiago Vila Doncel
  1012.     <sanvila@unex.es>.
  1013.  
  1014.     * aclocal.m4: Update from gettext-0.10.20.
  1015.     * ABOUT-NLS: Likewise.
  1016.     * intl/*: Likewise.
  1017.  
  1018.     * cp.c (do_copy): Change message from `missing file argument' to
  1019.     more precise `missing destination file'.  From Karl Berry.
  1020.  
  1021.     * ln.c (STREQ): Remove macro definition
  1022.     * system.h (STREQ): Add it here instead.
  1023.     * cp.c (do_copy): Use STREQ here instead of strcmp(...) == 0.
  1024.     * ls.c (parse_ls_color): Likewise.
  1025.     * df.c (selected_fstype, excluded_fstype, show_disk, main): Likewise.
  1026.  
  1027.     * cp.c (do_copy): When the force and backup options have been
  1028.     specified and the source and destination are the same name for an
  1029.     existing, regular file, convert the user's command, e.g.
  1030.     `cp --force --backup foo foo' to `cp --force foo fooSUFFIX'
  1031.     where SUFFIX is determined by any version control options used.
  1032.     (usage): Update --help message.
  1033.     At urging of (most recently) Karl Berry.
  1034.  
  1035. Sun Jun 16 13:40:22 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  1036.  
  1037.     * doc/Makefile.am (EXTRA_DIST): Add texinfo.tex.
  1038.  
  1039.     * Makefile.am (cvs-dist): Use -c option in cvs tag command.
  1040.  
  1041. Sat Jun 15 22:21:09 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  1042.  
  1043.     * configure.in (ALL_LINGUAS): Add pt.
  1044.     (AC_REPLACE_FUNCS): Add basename.
  1045.  
  1046.     * Makefile.am (EXTRA_DIST): Add basename.c.
  1047.     (fu_SOURCES): Remove basename.c.
  1048.  
  1049. Thu Jun  6 21:57:08 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  1050.  
  1051.     * po/Makefile.in.in: Update from gettext-0.10.16.
  1052.     * intl/*: Likewise.
  1053.     * ABOUT-NLS: Likewise.
  1054.     * aclocal.m4 (AC_REPLACE_GNU_GETOPT): Move definition to precede
  1055.     gettext-related ones.
  1056.     Update from gettext-0.10.16.
  1057.  
  1058. Sat Jun  1 12:44:51 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  1059.  
  1060.     * ls.c: Rename options and internal variables to reflect change to
  1061.     --color=WHEN where WHEN is never, always, or auto (for consistency
  1062.     with e.g. cp --sparse=WHEN.  For at least a while, the original
  1063.     slackware-supported arguments `none', `force', `yes', etc will be
  1064.     supported but deprecated by lack of documentation.
  1065.     (decode_switches): Use STDOUT_FILENO instead of `1' in isatty test.
  1066.     (usage): Update/add description of the --color option.
  1067.  
  1068.     * ls.c: Declare pointer parameters const as appropriate.
  1069.  
  1070. Tue May 28 18:39:49 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  1071.  
  1072.     * dd.c (print_stats): Don't mark "%u %s" as a translatable string.
  1073.     * mv.c (main): Don't mark "%s" as a translatable string.
  1074.     From G÷ran Uddeborg.
  1075.  
  1076. Thu May 23 07:50:38 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  1077.  
  1078.     * ls.c (usage): Make --literal (-N) description clearer.
  1079.  
  1080.     * acconfig.h (MOUNTED_LISTMNTENT): Add it.
  1081.     * fsusage [_CRAY]: Don't include sys/filsys.h because although
  1082.     Unicos-9 has it, it's not needed and would cause other problems
  1083.     because it requires inclusion of other, non-standard headers.
  1084.     * mountlist.c (read_filesystem_list) [MOUNTED_LISTMNTENT]: New
  1085.     function.
  1086.     From Johan Danielsson (joda@pdc.kth.se).
  1087.  
  1088.     * configure.in (AC_CHECK_FUNCS): Add listmntent for Unicos-9.
  1089.     Define MOUNTED_LISTMNTENT #ifdef _CRAY and HAVE_GETMNTENT.
  1090.     With an initial patch from Johan Danielsson.
  1091.  
  1092. Wed May 22 18:58:01 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  1093.  
  1094.     * configure.in (LINGUAS): Add sv.
  1095.  
  1096. Tue May 21 07:06:30 1996  Jim Meyering  <meyering@na-net.ornl.gov>
  1097.  
  1098.     * lib/euidaccess.c (euidaccess) [!S_IROTH]: Define.
  1099.     [!S_IWOTH]: Define.
  1100.     [!S_IXOTH]: Define.
  1101.     Marcus Daniels <marcus@sysc.pdx.edu> reported that m68k NEXTSTEP 3.2
  1102.     doesn't define S_IROTH or S_IWOTH unless some posix compile option
  1103.     is used and associated symbols defined.
  1104.  
  1105. Sun May 19 09:32:51 1996  Jim Meyering  (meyering@na-net.ornl.gov)
  1106.  
  1107.     * chown.c: New option: --no-dereference (-h).  Solaris 5.4's chown
  1108.     provides -h.
  1109.     (change_file_owner): Use lchown if --no-dereference (-h) was given.
  1110.     (usage): Update.
  1111.     (main): Fail if user requests --no-dereference on a system that
  1112.     doesn't have support for it.
  1113.  
  1114.     * chgrp.c: New option: --no-dereference (-h).
  1115.     [!MAXUID]: Define to INT_MAX.
  1116.     (change_file_group): Use lchown if --no-dereference (-h) was given.
  1117.     (usage): Update.
  1118.     (main): Fail if user requests --no-dereference on a system that
  1119.     doesn't have support for it.
  1120.  
  1121. Wed May 15 22:54:31 1996  Jim Meyering  (meyering@na-net.ornl.gov)
  1122.  
  1123.     * fsusage.c (get_fs_usage): Declare parameter PATH to be const.
  1124.     * fsusage.h: Update prototype to match.
  1125.  
  1126.     * chmod.c (describe_change): Declare pointer parameters to be const.
  1127.     (change_file_mode): Likewise.
  1128.     (change_dir_mode): Likewise.
  1129.  
  1130.     * ln.c (do_link): Declare pointer parameters to be const.
  1131.  
  1132.     * df.c (main): Fail with a diagnostic if both --human-readable and
  1133.     --portability are used.
  1134.     Likewise if --megabytes and --portability are used.
  1135.     Rearrange function definitions to precede respective uses to obviate
  1136.     all forward dcls. Remove forward dcls.
  1137.     Declare parameters const as appropriate.
  1138.  
  1139.     * modechange.c (mode_compile): Declare parameter MODE_STRING const.
  1140.     Remove register attribute.
  1141.     (mode_adjust): Likewise for CHANGES.
  1142.     * modechange.h: Reflect above changes in prototypes.
  1143.  
  1144.     * lib/Makefile.am (getdate.c): Disable dependencies that can
  1145.     require rerunning YACC when not in maintainer mode.
  1146.     (posixtm.c): Likewise.
  1147.  
  1148. Tue May 14 23:36:54 1996  Jim Meyering  (meyering@na-net.ornl.gov)
  1149.  
  1150.     * dd.c (print_stats): Restructure pluralization of error message
  1151.     so it's easier to translate.  Reported by G÷ran Uddeborg
  1152.     <gvran@uddeborg.pp.se>.
  1153.     * mv.c (main): Likewise.
  1154.  
  1155. Tue May  7 22:10:20 1996  Jim Meyering  (meyering@na-net.ornl.gov)
  1156.  
  1157.     * configure.in: Require autoconf-2.10.
  1158.  
  1159.     * aclocal.m4 (jm_MAINTAINER_MODE): New macro.
  1160.     * configure.in (jm_MAINTAINER_MODE): Use it.
  1161.  
  1162. Sun May  5 20:27:47 1996  Jim Meyering  (meyering@na-net.ornl.gov)
  1163.  
  1164.     * src/Makefile.am (bin_PROGRAMS): Add dircolors.
  1165.     (DEFS): Add -DSHAREDIR=\"$(datadir)\".
  1166.     (GNUVER): Remove definition of unused variable.
  1167.  
  1168. Sat May  4 20:54:32 1996  Jim Meyering  (meyering@na-net.ornl.gov)
  1169.  
  1170.     * system.h [IN_CTYPE_DOMAIN]: Rename from ISASCII.
  1171.     * backupfile.c [IN_CTYPE_DOMAIN]: Rename from ISASCII.
  1172.  
  1173.     * dircolors.c: Make enumerated constants upper case.
  1174.     (main): Don't use ANSI-style string concatenation.
  1175.     Add `static' and/or `const' to some file scope variables.
  1176.  
  1177. Wed May  1 00:20:00 1996  Jim Meyering  (meyering@na-net.ornl.gov)
  1178.  
  1179.     * lib/Makefile.am (EXTRA_DIST): Add strcasecmp.c.
  1180.     * configure.in (AC_REPLACE_FUNCS): Add strcasecmp.
  1181.  
  1182.     * ls.c (parse_ls_color, usage): Remove support for alternate spellings:
  1183.     --colours and LS_COLOURS.
  1184.     (parse_ls_color): Reverse sense of test for LS_COLORS environment
  1185.     variable and return -- save a level of indentation on a 100+-line
  1186.     block.
  1187.  
  1188. Mon Apr 29 22:07:41 1996  Jim Meyering  (meyering@na-net.ornl.gov)
  1189.  
  1190.     * POTFILES.in: Add chgrp.c.  From Franτois Pinard.
  1191.     Add dircolors.c.
  1192.     * dircolors.c: New file.  Written by H. Peter Anvin.
  1193.  
  1194. Sun Apr 28 16:32:38 1996  Jim Meyering  (meyering@na-net.ornl.gov)
  1195.  
  1196.     * ls.c: Apply color ls changes by Peter Anvin <Peter.Anvin@linux.org>
  1197.     and Dennis Flaherty <dennisf@denix.elk.miles.com> based on original
  1198.     patches by Greg Lee <lee@uhunix.uhcc.hawaii.edu>.  And on top of all
  1199.     that, a few changes from Ulrich Drepper.
  1200.  
  1201.     * ls.c (parse_ls_color): Use strcpy to initialize 3-character array.
  1202.     Automatic aggregate initialization isn't portable.
  1203.     Remove all ^L's.
  1204.     (get_funky_string): Declare static and move to precede single
  1205.     caller: parse_ls_color.
  1206.     Make some globals `static' and/or `const'.
  1207.     (LEN_STR_PAIR): New macro.
  1208.     (color_indicator): Use it in this declaration.
  1209.     (parse_ls_color): Use error, not fprintf.
  1210.     (decode_switches): Add a comment.
  1211.     (print_name_with_quoting): Add braces around inner if-else
  1212.     statement to clarify.
  1213.  
  1214.     * configure.in: Add a comment that fp_C_PROTOTYPES must precede
  1215.     AC_C_INLINE.  Otherwise, some systems lose because the value
  1216.     AC_C_INLINE choses with plain `cc' is different from that chosen
  1217.     when using the ANSI-mode C compiler.  From Kaveh Ghazi.
  1218.  
  1219.     * fileblocks.c [HAVE_ST_BLOCKS || _POSIX_VERSION]: Add extern dcl
  1220.     of unused variable so that after preprocessing, the file will never
  1221.     be empty.  Otherwise, some compilers in ANSI mode (among them, the
  1222.     Dec Alpha OSF 2.0 C compiler) reject empty files.  From Kaveh Ghazi.
  1223.     Indent CPP conditionals.
  1224.  
  1225. Fri Apr 26 05:52:03 1996  Karl Eichwalder  <ke@ke.Central.DE>
  1226.  
  1227.     * ls.c (usage): Add newline at end of printf format string.
  1228.  
  1229. Wed Apr 24 21:33:43 1996  Jim Meyering  (meyering@na-net.ornl.gov)
  1230.  
  1231.     * ln.c (do_link): Remove duplicate `if (lstat(...' block.
  1232.  
  1233.     * ln.c (do_link): With --force, don't remove DEST when it's
  1234.     the same as SOURCE.  Before, `ln -f FILE FILE' would remove FILE.
  1235.     Reported by Bruno Haible (haible@ilog.fr).
  1236.  
  1237.     * mkdir.c (main): Use verbose_fmt_string, not string literal in
  1238.     call to make_path for --parents.  Reported by Ulrich Drepper.
  1239.  
  1240.     * doc/mdate-sh: Get year as last rather than 6th field in output
  1241.     of date.  Otherwise, people with 2-word TZ (like `MET DST') lost.
  1242.     From Andreas Schwab.
  1243.  
  1244. Tue Apr 23 22:05:35 1996  Jim Meyering  (meyering@na-net.ornl.gov)
  1245.  
  1246.     * src/*.c, src/*.h: Update Copyright years to include 1996.
  1247.  
  1248.     * aclocal.m4 (AC_REPLACE_GNU_GETOPT): New macro.
  1249.     * configure.in: Use it.
  1250.     * lib/Makefile.am (fu_SOURCES): Remove getopt.c and getopt1.c.
  1251.     (EXTRA_DIST): Add getopt.c and getopt1.c
  1252.  
  1253.     * configure.in (AC_CHECK_FUNCS): Add lchown.
  1254.     * chgrp.c [HAVE_LCHOWN]: Define chown to lchown.
  1255.     * chown.c [HAVE_LCHOWN]: Likewise.
  1256.     * cp.c [HAVE_LCHOWN]: Likewise.
  1257.     * mv.c [HAVE_LCHOWN]: Likewise.
  1258.     Suggested by Franτois Pinard.
  1259.  
  1260.     * backupfile.c (find_backup_file_name, max_backup_version,
  1261.     make_version_name, version_number, concat): Const-ify decls of
  1262.     formal parameters.
  1263.     * backupfile.h: Likewise.
  1264.  
  1265.     * du.c (usage): The long-named arg is --human-readable, not --human.
  1266.     * df.c: Be consistent.  Accept --human-readable, not just --human.
  1267.     (usage): Reflect the change.
  1268.     From Karl Berry.
  1269.  
  1270. Sun Apr 21 08:04:51 1996  Jim Meyering  (meyering@na-net.ornl.gov)
  1271.  
  1272.     * df.c (usage): Reflect that now --no-sync is the default.
  1273.  
  1274.     * Makefile.am (LDADD): Put @INTLLIBS@ before package library.
  1275.  
  1276. Sat Apr 20 22:48:59 1996  Jim Meyering  (meyering@na-net.ornl.gov)
  1277.  
  1278.     * ls.c: Include xstrtol.h.
  1279.     (decode_switches): Use xstrtol, not atoi.
  1280.     Detect and ignore invalid value for COLUMNS environment variable.
  1281.     In error about invalid TABSIZE, don't reference optarg!
  1282.     [!POSIXLY_CORRECT]: Don't consider TABSIZE environment variable.
  1283.  
  1284.     * install.c: Include xstrtol.h.
  1285.     [HAVE_VALUES_H]: Include <values.h>.
  1286.     [!BITSPERBYTE]: Define.
  1287.     [!UID_T_MAX]: Define.
  1288.     [!GID_T_MAX]: Define.
  1289.     (get_ids): Use xstrtol, not atoi.
  1290.     (is_number): Remove now-unused function.
  1291.     * configure.in (AC_CHECK_HEADERS): Add values.h.
  1292.  
  1293. Fri Apr 19 00:06:02 1996  Jim Meyering  (meyering@na-net.ornl.gov)
  1294.  
  1295.     * Makefile.am (cvs-dist): New rule.  Based on the one from
  1296.     Tom Tromey's automake.
  1297.  
  1298.     * df.c: No longer call sync by default.
  1299.  
  1300.     * cp.c (copy_reg): Rearrange arithmetic in conditional to avoid
  1301.     integer overflow with large files.
  1302.  
  1303. Fri Apr 12 21:40:44 1996  Jim Meyering  (meyering@na-net.ornl.gov)
  1304.  
  1305.     * mkdir.c (main): Add new option: --verbose.
  1306.     Remove long-deprecated and nowhere-documented --path, a synonym
  1307.     for --parents.  It was confusing to get an error about `--p'
  1308.     being ambiguous.
  1309.  
  1310. Thu Apr  4 21:28:03 1996  Jim Meyering  (meyering@na-net.ornl.gov)
  1311.  
  1312.     * configure.in (LINGUAS): Add de.
  1313.     * po/de.po: New file.
  1314.  
  1315.     * src/Makefile.am (EXTRAdir): Set to $(bindir).
  1316.  
  1317. Wed Apr  3 06:12:23 1996  Jim Meyering  (meyering@na-net.ornl.gov)
  1318.  
  1319.     * cp.c (copy_reg): Use `ST_NBLOCKS (sb) * 512', not `sb.st_blocks *
  1320.     DEV_BSIZE.'  From H.J. Lu (hjl@lucon.org).
  1321.  
  1322.     * mvdir.c: Protoize.
  1323.     Include save-cwd.h.
  1324.     (fullpath): Rewrite to use save_cwd, xgetcwd, and restore_cwd
  1325.     rather than explicit chdir/getcwd calls.
  1326.  
  1327.     * src/Makefile.am (INCLUDES): Add -I$(srcdir) to get system.h
  1328.     when srcdir != builddir.  From Kaveh Ghazi.
  1329.  
  1330. Mon Apr  1 23:50:29 1996  Jim Meyering  (meyering@na-net.ornl.gov)
  1331.  
  1332.     * cp.c: Include assert.h (disabled).
  1333.     (path_concat): New function.
  1334.     (do_copy): Use path_concat instead of open-coding part of its
  1335.     functionality in two places.  This has the additional benefit
  1336.     of avoiding forming destination names like `D//file' when the
  1337.     destination directory D includes a trailing slash -- as would
  1338.     happen when cp is used like this:
  1339.     mkdir D; touch file D/file; cp -i file D/
  1340.     Reported by Franτois Pinard.
  1341.  
  1342. Sun Mar 31 11:18:09 1996  Jim Meyering  (meyering@na-net.ornl.gov)
  1343.  
  1344.     * ls.c (quote_filename): Use ISGRAPH and ISPRINT in place of
  1345.     ASCII-centric tests against literals.
  1346.     (length_of_file_name_and_frills): Likewise.
  1347.  
  1348. Thu Mar 21 16:43:13 1996  Jim Meyering  (meyering@na-net.ornl.gov)
  1349.  
  1350.     * src/*.c (main): Declare to be of type int, not void.
  1351.  
  1352. Sat Mar 16 10:46:23 1996  Jim Meyering  (meyering@na-net.ornl.gov)
  1353.  
  1354.     * configure.in (PACKAGE_VERSION): New macro.
  1355.     * acconfig.h (PACKAGE_VERSION): Add it.
  1356.     * src/Makefile.am: Remove rules for generating version.c.
  1357.     Remove references to version.o, version.h, and stamp-v.
  1358.     * version.c: Remove file.
  1359.     * version.h: Remove file.
  1360.     * chgrp.c chmod.c chown.c cp.c dd.c df.c du.c install.c ln.c
  1361.     ls.c mkdir.c mkfifo.c mknod.c mv.c mvdir.c rm.c rmdir.c sync.c
  1362.     touch.c: Don't include version.h.
  1363.     (main): Use PACKAGE_VERSION instead of version_string.
  1364.  
  1365. Sun Mar 10 22:36:11 1996  Jim Meyering  (meyering@na-net.ornl.gov)
  1366.  
  1367.     * backupfile.c (max_backup_version): Declare file_name_length to
  1368.     be of type size_t.  This avoids a warning from gcc -Wall.
  1369.  
  1370.     * chmod.c chown.c cp.c dd.c df.c du.c install.c ln.c ls.c
  1371.     mkdir.c mkfifo.c mknod.c mv.c mvdir.c rm.c rmdir.c sync.c
  1372.     touch.c (main): Initialize for internationalized message support:
  1373.     call setlocale, bindtextdomain, and textdomain.
  1374.     * system.h: Add definitions and includes for NLS.
  1375.     * Makefile.am (SUBDIRS): Add intl and po.
  1376.     * src/Makefile.am (datadir): Define.
  1377.     (localedir): Define.
  1378.     (DEFS): Add LOCALEDIR definition.
  1379.     (LDADD): Add @INTLLIBS@.
  1380.     * aclocal.m4: Add NLS-related macro definitions from
  1381.     gettext distribution.
  1382.     * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT, HAVE_LC_MESSAGES,
  1383.     HAVE_STPCPY): New macros.
  1384.     Add PACKAGE and VERSION.
  1385.     * configure.in (PACKAGE): Define with AC_DEFINE_UNQUOTED.
  1386.     (VERSION): Likewise.
  1387.     (ALL_LINGUAS): Define.
  1388.     (ud_GNU_GETTEXT): Use it.
  1389.     Link an nls file.
  1390.     (AC_OUTPUT): Reflect addition of two new directories, intl and po.
  1391.     Create po/Makefile.
  1392.     From Franτois Pinard.
  1393.  
  1394. Thu Mar  7 20:26:07 1996  Jim Meyering  (meyering@na-net.ornl.gov)
  1395.  
  1396.     * df.c (main): Tell read_filesystem_list that it should determine
  1397.     file system type when the user specifies --print-type or -T.
  1398.     From Michael Rendell <michael@cs.mun.ca>.
  1399.  
  1400. Tue Feb 27 23:13:46 1996  Jim Meyering  (meyering@na-net.ornl.gov)
  1401.  
  1402.     * src/Makefile.am: Adapt for automake-0.30.
  1403.     (noinst_HEADERS): Rename from HEADERS.
  1404.     (EXTRA_PROGRAMS): Set to `df mvdir'.
  1405.     (PROGRAMS): Remove definition.
  1406.     (bin_PROGRAMS): Remove hard-coded df.  Use @DF_PROG@ instead.
  1407.     (libexec_PROGRAMS): Remove hard-coded mvdir.  Use @MVDIR_PROG@ instead.
  1408.     * lib/Makefile.am: (noinst_HEADERS): Rename from HEADERS.
  1409.  
  1410.     * configure.in (DF_PROG, MVDIR_PROG): Use these instead of bundling
  1411.     both into PROGS.
  1412.  
  1413. Mon Feb 26 21:23:58 1996  Jim Meyering  (meyering@na-net.ornl.gov)
  1414.  
  1415.     * dd.c (copy): Remove bogus (now that we're using full_write)
  1416.     increment of w_partial.
  1417.     Change sense of the tests (though they're equivalent) that check
  1418.     the value returned by full_write. making it clearer where errno
  1419.     is valid.  full_write always writes the full amount or fails.
  1420.  
  1421. Thu Feb 15 23:08:41 1996  Jim Meyering  (meyering@na-net.ornl.gov)
  1422.  
  1423.     * cp.c (copy): Detect (and fail) when creating backup file would
  1424.     destroy the source file.  Before, running the commands
  1425.     cd /tmp; rm -f a a~; : > a; echo A > a~; cp -b -V simple a~ a
  1426.     would leave two zero-length files: a and a~.
  1427.     Reported by Martin C. Martin <mcm@cs.cmu.edu>.
  1428.  
  1429. Mon Feb 12 23:23:25 1996  Jim Meyering  (meyering@na-net.ornl.gov)
  1430.  
  1431.     * configure.in (LIBOBJS): Split assignment into two statements to
  1432.     accomodate automake-0.29 buglet.
  1433.  
  1434.     Update for automake-0.29.
  1435.     * Makefile.am (CONFIG_HEADER): Don't define.  Automake now does it.
  1436.     * src/Makefile.am: Likewise.
  1437.     * lib/Makefile.am: Likewise.
  1438.     * doc/Makefile.am (info_TEXINFOS): Renamed from TEXINFOS.
  1439.     * man/Makefile.am (man_MANS): Renamed from MANS.
  1440.  
  1441. Wed Jan 31 21:50:41 1996  Jim Meyering  (meyering@na-net.ornl.gov)
  1442.  
  1443.     * dd.c (skip): Change type of parameter #5 from char* to
  1444.     unsigned char* to match type of argument.
  1445.     (copy): Cast first arg in memset call to char* to avoid warnings
  1446.     from SunOS's acc.
  1447.     (copy_simple): Likewise.
  1448.  
  1449.     * du.c: Remove comma after last item in enum.
  1450.  
  1451.     * df.c: Remove block of usage comments at beginning of file.
  1452.  
  1453.     * df.c (main): New options --human-readable (-h) and --megabytes (-m).
  1454.     (human_readable_1k_blocks): New function.
  1455.     (print_header): Honor new options.
  1456.     (show_dev): Honor new options.
  1457.     Add ifdef'd-out code to avoid printing lines for mount points that
  1458.     match ^/auto/.* and ^/tmp_mnt.*.  Rather than hard-coding those
  1459.     two prefixes, the code should allow the user to specify a regular
  1460.     expression.  From Larry McVoy (lm@sgi.com).
  1461.  
  1462.     * du.c (human_readable): Fix off-by-one error that converted
  1463.     1024*1024 to 1024K rather than 1G.  Describe the function.
  1464.     * df.c (human_readable_1k_blocks): Likewise
  1465.     (usage): Update usage message to reflect additions.
  1466.  
  1467. Sat Jan 20 06:00:09 1996  Jim Meyering  (meyering@na-net.ornl.gov)
  1468.  
  1469.     * cp-aux.c (usage): Fix description of --archive.  From Andreas Schwab.
  1470.  
  1471.     * install.c (copy_files): Accept backup/suffix options just as cp,
  1472.     ln, and mv do.  From Marty Leisner <leisner@sdsp.mc.xerox.com>.
  1473.  
  1474.     * src/Makefile.am (DISTCLEANFILES): Set to stamp-v version.c.
  1475.     (version.c): Update with rules from textutils.
  1476.     (transform): Add `s/ginstall/install/;' prefix.
  1477.  
  1478.     * lib/Makefile.am (BUILT_SOURCES): Set to posixtm.c getdate.c so
  1479.     autodependencies work after `make maintainer-clean.'
  1480.  
  1481.     * du.c (main): New options --human-readable (-h) and --megabytes (-m).
  1482.     (human_readable): New function.
  1483.     From Larry McVoy (lm@sgi.com).
  1484.  
  1485. Fri Dec 22 21:34:55 1995  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
  1486.  
  1487.     * configure.in: Touch stamp-h only if config.h is remade.
  1488.  
  1489. Sat Dec 23 11:33:19 1995  Jim Meyering  (meyering@comco.com)
  1490.  
  1491.     * ls.c (decode_switches): Make -o a synonym for -lG for compatibility
  1492.     with most other versions of ls.  Reported by Karl Berry.
  1493.     (usage): Update.
  1494.  
  1495. Fri Dec 22 00:48:01 1995  Jim Meyering  (meyering@comco.com)
  1496.  
  1497.     * dd.c (cleanup): New function -- broken out from quit.
  1498.     (interrupt_handler): Rewrite to reset default signal handler,
  1499.     call cleanup, then repost caught signal.
  1500.  
  1501. Thu Dec 21 23:15:06 1995  Jim Meyering  (meyering@comco.com)
  1502.  
  1503.     * argmatch.h: New file.
  1504.     * lib/Makefile.am (HEADERS): Add argmatch.h.
  1505.     * argmatch.c: (argmatch): Add const attribute to parameters.
  1506.     (invalid_arg): Add const attribute to parameters.
  1507.  
  1508.     * cp.c: Include argmatch.h.
  1509.     * ls.c: Likewise.
  1510.     * touch.c: Likewise.
  1511.  
  1512.     * cp.c (main): Accept new option, --sparse={never,auto,always},
  1513.     to control creation of sparse files.
  1514.     (copy_reg): Set local, make_holes, from global flag_sparse.
  1515.     * cp-aux (usage): Describe new option.
  1516.  
  1517. Mon Dec 18 22:29:49 1995  Jim Meyering  (meyering@comco.com)
  1518.  
  1519.     * ln.c: [SYMBOLIC_SPACE_STRING]: New macro.
  1520.     (do_link): Use SYMBOLIC_SPACE_STRING instead of open-coded #ifdef.
  1521.     For --verbose, output `create [symbolic ]link DEST to SRC' instead
  1522.     of ambiguous (or inconsistent with cp -v and mv -v) `SRC -> DEST.'
  1523.  
  1524. Tue Dec  5 17:38:11 1995  Jim Meyering  (meyering@comco.com)
  1525.  
  1526.     * rm.c (rm): Work around SunOS 4 bug whereby lstat doesn't fail
  1527.     when given a zero-length file name argument.  Reported by
  1528.     Mark Calabretta <mcalabre@atnf.csiro.au>.
  1529.  
  1530. Wed Nov 22 23:12:47 1995  Jim Meyering  (meyering@comco.com)
  1531.  
  1532.     * Makefile.in (all et. al.): If make was invoked with -k and a
  1533.     sub-make fails, fail after the loop rather than exiting right away.
  1534.     Otherwise, make's -k option could be ineffective.
  1535.  
  1536. Thu Nov 16 21:25:45 1995  Jim Meyering  (meyering@comco.com)
  1537.  
  1538.     * Makefile.in (default): New default target.  Depend on `all' to work
  1539.     around bug in AIX-3.2.5's /bin/make.  Reported by Andreas Luik
  1540.     <luik@isa.de>.
  1541.  
  1542. Fri Nov 10 23:31:46 1995  Jim Meyering  (meyering@comco.com)
  1543.  
  1544.     * src/Makefile.in (.c._o, ._c._o): Remove temporary source files.
  1545.     (.c._c): Don't redirect directly to $@.
  1546.  
  1547.     * src/Makefile.in (DISTFILES): Include ansi2knr.c and ansi2knr.1.
  1548.     (clean): Remove temp files generated by ansi2knr rules.
  1549.     (ansi2knr): New rule.
  1550.     Add suffixes, dependencies, and rules to convert ANSI source to K&R
  1551.     when required.
  1552.     ($(OBJECTS)): Depend on $(ANSI2KNR)
  1553.  
  1554.     * configure.in: Add fp_C_PROTOTYPES.
  1555.  
  1556.     * Makefile.in (DISTFILES): Add aclocal.m4.
  1557.     (configure): Depend on aclocal.m4.
  1558.     (stamp.h.in): Depend on aclocal.m4 and acconfig.h.
  1559.     * acconfig.h: Add PROTOTYPES.
  1560.  
  1561.     * cp.h: Remove declaration of error.  Include error.h instead.
  1562.     Protoize forward dcls of functions in cp-hash.c and cp-aux.c
  1563.     * cp-aux.c: Protoize and add const attribute to parameters.
  1564.     * cp-hash.c: Likewise.
  1565.  
  1566. Thu Nov  9 23:27:05 1995  Jim Meyering  (meyering@comco.com)
  1567.  
  1568.     * system.h [__P]: Define it.
  1569.  
  1570.     * src/*.c: Protoize.
  1571.  
  1572.     * ls.c (enum filetype): Move dcl to precede prototypes.
  1573.     (struct fileinfo): Likewise.
  1574.     Add const attribute to some parameters.
  1575.  
  1576.     * rm.c (struct pathstack): Move dcl to precede prototypes.
  1577.  
  1578.     * dd.c (translate_charset): Make parameter `const'.
  1579.  
  1580.     * ln.c (main): Move to the end.
  1581.     Remove most fwd dcls.
  1582.     * chmod.c: Likewise.
  1583.     * chown.c: Likewise.
  1584.     * chgrp.c: Likewise.
  1585.     * mkdir.c: Likewise.
  1586.     * mkfifo.c: Likewise.
  1587.     * mknod.c: Likewise.
  1588.     * mvdir.c: Likewise.
  1589.     * touch.c: Likewise.
  1590.  
  1591.     * mv.c: Rearrange functions to obviate forward dcls.
  1592.     Remove forward dcls.
  1593.  
  1594.     * cp.c: Protect prototyped forward dcls with __P.
  1595.     * dd.c: Likewise.
  1596.     * df.c: Likewise.
  1597.     * du.c: Likewise.
  1598.     * install.c: Likewise.
  1599.     * ls.c: Likewise.
  1600.     * rm.c: Likewise.
  1601.  
  1602. Wed Nov  1 23:11:05 1995  Jim Meyering  (meyering@comco.com)
  1603.  
  1604.     * cp.c (copy): Use euidaccess instead of euidaccess_stat.
  1605.     * mv.c (do_move): Likewise.
  1606.     * rm.c (remove_file, remove_dir): Likewise.
  1607.  
  1608. Sun Oct 29 06:06:13 1995  Jim Meyering  (meyering@comco.com)
  1609.  
  1610.     * aclocal.m4 (jm_WITH_AUTODEPS): New directive.
  1611.     * configure.in: Use it.
  1612.  
  1613.     * lib/Makefile.in (INCLUDE, COMPILE): New variables.
  1614.     (.c.o): Rewrite to be more like src/Makefile.in.
  1615.     Add line that (--with-autodeps) will include mkdep-Makefile.
  1616.     (distclean): Remove .deps.
  1617.     * src/Makefile.in: Likewise.
  1618.  
  1619.     * src/Makefile.in (test.o): Remove special rule.
  1620.  
  1621.     * mkdep-Makefile: New file.
  1622.     * Makefile.in (DISTFILES): Add mkdep-Makefile.
  1623.  
  1624.     * doc/Makefile.in (mostlyclean): Remove *.info.
  1625.  
  1626.     * touch.c: Change long option name `--file' to `--reference'.
  1627.     Leave --file as an alias, for now.  It will be removed later.
  1628.     (usage): Reflect option name change.  From Franc,ois Pinard.
  1629.  
  1630. Wed Oct 18 23:09:55 1995  Jim Meyering  (meyering@comco.com)
  1631.  
  1632.     * configure.in (AC_CHECK_HEADERS): Add sys/wait.h and sys/ioctl.h.
  1633.     (AC_CHECK_FUNCS): Add endpwent.
  1634.  
  1635.     * fileblocks.c: Use _POSIX_VERSION, not _POSIX_SOURCE.
  1636.  
  1637.     * userspec.c [endgrent]: Test !HAVE_ENDGRENT rather than _POSIX_SOURCE.
  1638.     [endpwent]: Test !HAVE_ENDPWENT rather than _POSIX_SOURCE.
  1639.  
  1640.     * chgrp.c [endgrent]: Test !HAVE_ENDGRENT rather than _POSIX_SOURCE.
  1641.  
  1642.     * chown.c [endpwent]: Test !HAVE_ENDPWENT rather than _POSIX_SOURCE.
  1643.     [endgrent]: Remove unused definition.
  1644.  
  1645.     * df.c (main): Fail if the same file system type was both selected
  1646.     and excluded.  Reported by Paul Close pdc@lunch.engr.sgi.com.
  1647.  
  1648.     * rm.c (duplicate_entry): Always return 0 if !D_INO_IN_DIRENT,
  1649.     rather than if _POSIX_SOURCE.
  1650.  
  1651.     * install.c: Use HAVE_SYS_WAIT_H, not _POSIX_VERSION in conditional
  1652.     inclusion of sys/wait.h.
  1653.     [endgrent]: Test !HAVE_ENDGRENT rather than _POSIX_SOURCE.
  1654.     [endpwent]: Test !HAVE_ENDPWENT rather than _POSIX_SOURCE.
  1655.  
  1656.     * ls.c Use HAVE_SYS_IOCTL_H, rather than !_POSIX_SOURCE || _AIX.
  1657.  
  1658. Thu Oct  5 21:49:34 1995  Jim Meyering  (meyering@comco.com)
  1659.  
  1660.     * configure.in (HAVE_STRUCT_UTIMBUF): Add new test.  Testing for
  1661.     the existence of <utime.h> is insufficient on some Next systems.
  1662.     * acconfig.h (HAVE_STRUCT_UTIMBUF): Add it.
  1663.     * system.h [!HAVE_UTIME_H]: Don't declare struct utimbuf here.
  1664.     [!HAVE_STRUCT_UTIMBUF]: Declare struct utimbuf here instead.
  1665.  
  1666.     * chgrp.c: Include limits.h.
  1667.     [!INT_MAX]: Define it.
  1668.  
  1669.     * df.c (show_point): Cast -2 to dev_t before assignment.
  1670.     * mountlist.c (read_filesystem_list): Cast -1 to dev_t before
  1671.     assignment.
  1672.  
  1673. Sun Oct  1 13:22:36 1995  Jim Meyering  (meyering@comco.com)
  1674.  
  1675.     * configure.in (AC_REPLACE_FUNCS): Add strtoul.
  1676.     * strtoul.c: New file.
  1677.     * lib/Makefile.in (SOURCES): Add strtoul.c.
  1678.  
  1679.     * acconfig.h (STATFS_TRUNCATES_BLOCK_COUNTS): Add it.
  1680.     * configure.in (STATFS_TRUNCATES_BLOCK_COUNTS): New check to enable
  1681.     workaround for SunOS statfs brokenness.  Block counts in struct
  1682.     statfs for partitions 2GB and larger are truncated, but correct
  1683.     values are stored in f_spare array member.
  1684.  
  1685.     * fsusage.c (get_fs_usage) [STATFS_TRUNCATES_BLOCK_COUNTS]: Copy
  1686.     untruncated block counts from f_spare array into proper members
  1687.     of struct statfs. From Eirik Fuller (eirik@netapp.com);
  1688.  
  1689.     * ls.c (dired_dump_obstack): Don't generate any output if the
  1690.     obstack is empty.
  1691.     (main): Always initialize and dump subdired_obstack, not just if -R.
  1692.     `ls -lDR dir dir2' was using uninitialized subdired_obstack.
  1693.     Reported by Samuli K{rkk{inen <hskarkka@snakemail.hut.fi>.
  1694.  
  1695. Tue Sep 26 23:05:01 1995  Jim Meyering  (meyering@comco.com)
  1696.  
  1697.     * man/Makefile.in (install-data, uninstall): Use sed not basename.
  1698.     The GNU Coding Standard suggests that only a select set of
  1699.     relatively standard utilities be used in Makefiles.  basename is
  1700.     not among them.  Suggested by Ulrich Drepper.
  1701.  
  1702. Mon Sep 25 23:12:37 1995  Jim Meyering  <meyering@gremlin.comco.com>
  1703.  
  1704.     * src/df.c (show_point): Ignore mtab entries with either
  1705.     nonexistent mount points or with inconsistent device number.
  1706.     From Eirik Fuller <eirik@synopsys.com>.
  1707.  
  1708. Wed Aug  9 00:33:05 1995  Jim Meyering  (meyering@comco.com)
  1709.  
  1710.     * mknod.c (my_strtol): Remove function.
  1711.     (main): Use xstrtol instead.
  1712.  
  1713. Mon Aug  7 23:27:54 1995  Jim Meyering  (meyering@comco.com)
  1714.  
  1715.     * Makefile.in (DISTFILES): Don't distribute unneeded COPYING.LIB.
  1716.     From Franc,ois.
  1717.  
  1718. Fri Aug  4 22:11:06 1995  Jim Meyering  (meyering@comco.com)
  1719.  
  1720.     * install.c (isnumber): Rename to is_number to avoid conflict with
  1721.     FreeBSD 2.0.5 macro definition.  Reported by David O'Brien
  1722.     (obrien@sea.legent.com).
  1723.  
  1724.     * lib/save-cwd.c: New file.
  1725.     * lib/save-cwd.h: New file.
  1726.     * lib/Makefile.in (SOURCES, OBJECTS, DISTFILES): Update for new files.
  1727.  
  1728.     * configure.in: (AC_REPLACE_FUNCS): Remove fnmatch.
  1729.     Add check for working fnmatch functions so that
  1730.     systems providing it don't incur the space overhead of linking
  1731.     with the version in lib.  Cross compiling builds always use the
  1732.     version in lib.
  1733.  
  1734.     * ls.c (decode_switches): Set SORT_TYPE.  Before, ls -c was sorting
  1735.     by name, rather than change time.  Reported by Ken Estes
  1736.     (m-ke0082@sparky.cs.nyu.edu).
  1737.  
  1738.     * du.c: (save_cwd, restore_cwd, free_cwd): Remove functions.
  1739.     New versions have been broken out into save-cwd.c.
  1740.     (du_files): Adapt to handle status code returned by new versions
  1741.     of save_cwd and restore_cwd.
  1742.     (count_entry): Likewise.
  1743.  
  1744.     * all programs (main): Include program name in --version output.
  1745.  
  1746.     * src/Makefile.in (cp.o): Depend on ../lib/obstack.h.
  1747.  
  1748.     * xstrtol.c, xstrtol.h: New files.
  1749.     * xstrtoul.c, xstrtoul.h: New files.
  1750.     * lib/Makefile.in (SOURCES, OBJECTS, DISTFILES): Update for new files.
  1751.  
  1752.     * chgrp.c (parse_group): Use xstrtoul instead of isnumber; the
  1753.     latter would silently overflow, accepting a group id larger
  1754.     than INT_MAX.
  1755.     (isnumber): Remove now-unused static function.
  1756.     (change_file_group) [MAXUID]: Give a more descriptive message
  1757.     when numeric group id is larger than MAXUID.
  1758.  
  1759. Sat May 27 00:35:47 1995  Jim Meyering  (meyering@comco.com)
  1760.  
  1761.     * system.h [!STDC_HEADERS && HAVE_MEMORY_H]: Include memory.h.
  1762.     Without this, SunOS doesn't get type for memchr.
  1763.     Reported by Kaveh Ghazi.
  1764.  
  1765. Sun May 21 07:20:55 1995  Jim Meyering  (meyering@comco.com)
  1766.  
  1767.     * all source files (usage): Include one- or two-line synopsis
  1768.     in --help output.  From Karl Berry.
  1769.  
  1770.     * Makefile.in (.PHONY): TAGS is not a phony target.  From Franc,ois.
  1771.  
  1772.     * All Makefile.in (install-exec, install-exec): New targets.
  1773.     From Karl Berry.
  1774.  
  1775.     * all Makefile.in (maintainer-clean): Renamed from realclean
  1776.     per GNU Standards.
  1777.  
  1778.     * euidaccess.c: No longer include safe-l?stat.h.
  1779.     * fsusage.c: Likewise.
  1780.     * isdir.c: Likewise.
  1781.     * makepath.c: Likewise.
  1782.     * mkdir.c: Likewise.
  1783.     * rename.c : Likewise.
  1784.     * rmdir.c: Likewise.
  1785.  
  1786. Sat May 13 07:47:44 1995  Jim Meyering  (meyering@comco.com)
  1787.  
  1788.     * lib/Makefile.in: Remove safe-l?stat.[ch]in and related rules.
  1789.     (maintainer-clean): Rename from realclean.
  1790.     (.PHONY): New dependencies.
  1791.     [.c.o]: Remove -I. since safe-l?stat.h are no longer used.
  1792.  
  1793.     * argmatch.c (argmatch): Include sys/types.h and declare length
  1794.     argument with type size_t.
  1795.  
  1796.     * backupfile.c: Remove unnecessary definitions for r?index.
  1797.     Update definitions for ISDIGIT.
  1798.  
  1799.     * basename.c (basename): Make argument const.
  1800.  
  1801.     * euidaccess.c (eaccess_stat): Make statp and path arguments const.
  1802.     (euidaccess): Make statp argument const.  Use stat, not safe_stat.
  1803.  
  1804.     * fsusage.c (statfs): Use stat, not safe_stat.
  1805.     * isdir.c (isdir): Likewise.
  1806.     * mkdir.c (mkdir): Likewise.
  1807.     * rename.c (rename): Likewise.
  1808.     * rmdir.c (rmdir): Likewise.
  1809.  
  1810.     * userspec.c (parse_user_spec): Use strchr, not index.
  1811.     [!HAVE_STRING_H]: Define strchr in terms of index, not the
  1812.     other way around.
  1813.  
  1814.     * makepath.c: (make_path): Use stat, not SAFE_STAT.
  1815.     Use strchr, not index.  Adjust defines accordingly.
  1816.  
  1817.     * makepath.h: Undef __P before defining.
  1818.     Guard definition with simpler `#if __STDC__'.
  1819.  
  1820.     * chgrp.c: Use stat (lstat), not safe_stat (safe_lstat).
  1821.     * chmod.c: Likewise.
  1822.     * chown.c: Likewise.
  1823.     * cp-hash.c: Likewise.
  1824.     * cp.c: Likewise.
  1825.     * df.c: Likewise.
  1826.     * du.c: Likewise.
  1827.     * install.c: Likewise.
  1828.     * ln.c: Likewise.
  1829.     * ls.c: Likewise.
  1830.     * mv.c: Likewise.
  1831.     * mvdir.c: Likewise.
  1832.     * rm.c: Likewise.
  1833.     * touch.c: Likewise.
  1834.  
  1835. Fri May 12 21:21:23 1995  Jim Meyering  (meyering@comco.com)
  1836.  
  1837.     * mv.c (movefile): Remove a single trailing slash from destdir
  1838.     before concatenating with `/' and filename for `ok to overwrite...'
  1839.     message.  Reported by Franc,ois Pinard.
  1840.  
  1841. Mon May  1 23:03:30 1995  Jim Meyering  (meyering@comco.com)
  1842.  
  1843.     * ls.c (quote_filename): Never return NULL when quoting filenames
  1844.     as C-strings.  --quote-name was quoting only strings containing
  1845.     at least one C-quotable character.  Reported by David J. MacKenzie.
  1846.  
  1847. Mon Mar 20 21:44:40 1995  Jim Meyering  (meyering@comco.com)
  1848.  
  1849.     * rename.c (rename): Compare src and dest inode numbers rather
  1850.     than src inode and dest dev when determining whether they refer
  1851.     to the same file.  From marc@math.cornell.edu (Marc Parmet).
  1852.  
  1853.     * df.c (usage): Add ellipsis after `[OPTION]'.  Use FILE,
  1854.     not deprecated PATH in text of help message.  From Karl Berry.
  1855.  
  1856. Fri Mar 10 21:13:23 1995  Jim Meyering  (meyering@comco.com)
  1857.  
  1858.     * src/*.c: Update Copyright dates.
  1859.  
  1860.     * src/Makefile.in (uninstall): Handle case in which LIBPROGS is empty.
  1861.     Reported by Peter Smidt <smidt@cd.chalmers.se>.
  1862.  
  1863. Thu Feb 23 22:29:11 1995  Jim Meyering  (meyering@comco.com)
  1864.  
  1865.     * du.c (save_cwd) [!HAVE_FCHDIR]: Always initialize cwd->desc.
  1866.     (restore_cwd) [!HAVE_FCHDIR]: Remove unnecessary redefinition
  1867.     of fchdir.  Both from Bruno Haible.
  1868.  
  1869. Mon Feb 20 22:54:39 1995  Jim Meyering  (meyering@comco.com)
  1870.  
  1871.     * du.c (save_cwd, restore_cwd): New functions.
  1872.     (main): Use them instead of open coded versions.
  1873.     (count_entry): Use them here instead of relying on chdir ("..") --
  1874.     but only when necessary.  Before, with --dereference (-L),
  1875.     traversing a symlink caused failure because chdir ("..") didn't
  1876.     work as expected.  Reported by Bruno Haible.
  1877.  
  1878. Sat Feb 11 07:52:01 1995  Jim Meyering  (meyering@comco.com)
  1879.  
  1880.     * configure.in (AC_REPLACE_FUNCS): Add memcmp, memcpy, and memset.
  1881.     (AC_CHECK_FUNCS): Add strchr and strrchr.
  1882.     * lib/Makefile.in (SOURCES): Add memcmp.c, memcpy.c, and memset.c.
  1883.  
  1884.     * system.h: Remove index/rindex and bcmp/bcopy/bzero references.
  1885.     Separate errno declaration from STDC_HEADERS.
  1886.  
  1887.     * dd.c (copy): Use memset, not bzero.
  1888.     (copy_simple): Use memcpy, not bcopy.
  1889.  
  1890.     * fsusage.c (get_fs_usage, statfs): Use safe_read, and safe_stat
  1891.     rather than bare read and stat.  From Bruno Haible.
  1892.  
  1893.     * lib/Makefile.in (DISTFILES): Add error.h.
  1894.  
  1895.     * chgrp.c, chmod.c, chown.c, cp-hash.c, cp.c, df.c, du.c, install.c,
  1896.     ln.c, ls.c, mv.c, mvdir.c, rm.c, touch.c: Rename SAFE_STAT and
  1897.     SAFE_LSTAT to safe_stat and safe_lstat.
  1898.  
  1899.     * basename.c (basename): Use strrchr, not rindex.
  1900.     [!STDC_HEADERS && !HAVE_STRING_H]: Define strrchr to rindex.
  1901.  
  1902. Tue Dec 27 07:07:53 1994  Jim Meyering  (meyering@comco.com)
  1903.  
  1904.     * src/*.c: Include "error.h" rather than simply declaring
  1905.     `void error ();'.
  1906.     * src/Makefile.in (OBJECTS): Depend on ../lib/error.h.
  1907.  
  1908.     * sync.c (main): Make error message accurate.
  1909.  
  1910.     * dd.c (skip): Use safe_read instead of read.
  1911.     (copy): Use full_write instead of write.
  1912.     From Bruno Haible.
  1913.  
  1914. Sat Dec 10 00:02:09 1994  Jim Meyering  (meyering@comco.com)
  1915.  
  1916.     * Makefile.in (install): Install `install' first as transformed
  1917.     `ginstall,' then remove the target (transformed `install')
  1918.     and move GNU install into its place.  Before, the installation
  1919.     process failed on systems (e.g. HPUX) that can't overwrite the
  1920.     executable associated with a running process.
  1921.  
  1922.     * system.h [!HAVE_STRING_H]: Define strchr to index and strrchr to
  1923.     rindex instead of the other way around.
  1924.     * rmdir.c (remove_parents): Use strr?chr instead of r?index.
  1925.     * mvdir.c (main): Likewise.
  1926.     * dd.c (parse_conversion, scan_args): Likewise.
  1927.     * cp.c (copy, make_path_private): Likewise.
  1928.  
  1929.     * system.h: Include <ctype.h> and define IS* macros.
  1930.     * touch.c: No longer include <ctype.h>.
  1931.     * chown.c: Likewise.
  1932.     * install.c: Likewise.
  1933.     [isascii, ISDIGIT]: Remove definitions.
  1934.     * chgrp.c: Likewise.
  1935.     * dd.c: Likewise.
  1936.  
  1937. Sun Dec  4 14:53:12 1994  Jim Meyering  (meyering@comco.com)
  1938.  
  1939.     * doc/Makefile.in (DISTFILES): Add getdate.texi.
  1940.  
  1941. Fri Nov 11 11:15:20 1994  Jim Meyering  (meyering@comco.com)
  1942.  
  1943.     * mknod.c (my_strtol): New function.
  1944.     (main): Use it instead of atoi to convert argument strings to
  1945.     major and minor device numbers.  Now, mknod diagnoses invalid
  1946.     device numbers and accepts octal and hexadecimal as well as
  1947.     decimal string arguments.  Ralf Lammers
  1948.     <rlammers@physik.uni-osnabrueck.de> suggested that mknod accept
  1949.     hex device numbers for compatibility with HPUX's mknod program.
  1950.  
  1951.     * configure.in (AC_REPLACE_FUNCS): Add strtol.
  1952.     * lib/Makefile.in (SOURCES): Add strtol.c.
  1953.  
  1954. Sun Nov 06 00:18:56 1994  Jim Meyering  (meyering@comco.com)
  1955.  
  1956.     * Version 3.12.
  1957.  
  1958. Sat Nov 05 15:20:07 1994  Jim Meyering  (meyering@comco.com)
  1959.  
  1960.     * group-member.c: Use up-to-date version.
  1961.     * group-member.h: New file.
  1962.     * lib/Makefile.in (DISTFILES): Add group-member.h.
  1963.     (group-member.o): Depend on group-member.h.
  1964.  
  1965.     * Version 3.11.
  1966.  
  1967.     * src/Makefile.in (obstack.o): Depend on obstack.h.
  1968.     * makepath.c (makepath) [__STDC__]: Add an ANSI-style prototype.
  1969.     From Kaveh Ghazi.
  1970.  
  1971. Fri Nov 04 17:27:55 1994  Jim Meyering  (meyering@comco.com)
  1972.  
  1973.     * Version 3.10.
  1974.  
  1975. Thu Nov 03 12:59:34 1994  Jim Meyering  (meyering@comco.com)
  1976.  
  1977.     * makepath.h: New file.
  1978.     * makepath.c: Include it.
  1979.     Add an argument: PRESERVE_EXISTING.
  1980.     Declare char* arguments const.
  1981.     * install.c, mkdir.c: Update callers.  Set it in mkdir.c so
  1982.     that `mkdir -p' ignores existing directories as POSIX mandates.
  1983.     Before, it would try to change owner and/or permissions of such
  1984.     directories.  Christopher S. Arthur <csa@halcyon.com> reported
  1985.     the mkdir -p failure.
  1986.     * lib/Makefile.in (DISTFILES): Add it.
  1987.     (makepath.o): Depend on makepath.h.
  1988.     * src/Makefile.in (install.o, mkdir.o): Depend on makepath.h.
  1989.     * cp.c (make_path_private): Rename function from make_path to
  1990.     avoid confusion.
  1991.     (do_copy): Update caller.
  1992.  
  1993.     * ls.c: Include <limits.h> before system.h because limits.h on
  1994.     some systems undefines PATH_MAX, whereas system.h includes pathmax.h
  1995.     which sets PATH_MAX.  From Kaveh Ghazi.
  1996.  
  1997.     * euidaccess.c: Define S_IXUSR, S_IXGRP, and S_IXOTH in terms of
  1998.     S_IEXEC if they're not already defined.  Reported by Kaveh Ghazi
  1999.     and Daniel Hagerty <hag@gnu.ai.mit.edu>.
  2000.  
  2001. Tue Nov 01 06:18:20 1994  Jim Meyering  (meyering@comco.com)
  2002.  
  2003.     * eaccess.c (euidaccess): Rename from eaccess to avoid conflict
  2004.     with like-named, different function in some C libraries.
  2005.     * euidaccess.c: Renamed from eaccess.c
  2006.     * lib/Makefile.in (SOURCES): Rename eaccess.c.
  2007.     Update dependency, too.
  2008.     * configure.in (AC_REPLACE_FUNCS): Check for euidaccess
  2009.  
  2010. Mon Oct 31 08:02:31 1994  Jim Meyering  (meyering@comco.com)
  2011.  
  2012.     * ls.c (dired_dump_obstack): Cast obstack_finish for non-ANSI
  2013.     compilers.  Kaveh Ghazi reported the problem.
  2014.  
  2015. Sat Oct 29 00:42:18 1994  Jim Meyering  (meyering@comco.com)
  2016.  
  2017.     * fsusage.c (get_fs_usage) [STAT_STATFS4]: Define CONVERT_BLOCKS
  2018.     to adjust_blocks for _AIX.  Was getting off-by-8x numbers.
  2019.  
  2020.     * df.c: Make --sync the default.
  2021.     Add new option: --no-sync.
  2022.     Remove short option alias for --sync.
  2023.     (usage): Update.
  2024.  
  2025.     * ls.c [!STDC_HEADERS]: Declare free.
  2026.     (dired_dump_obstack): Cast pos[i] (of type size_t) to int so it
  2027.     matches %d in printf.
  2028.     (quote_filename): Fix typo in stpcpy call.
  2029.  
  2030. Thu Oct 27 00:02:45 1994  Jim Meyering  (meyering@comco.com)
  2031.  
  2032.     * fsusage.c: Include <sys/stat.h> before safe-stat.h.
  2033.  
  2034.     * cp.c (make_path): Don't change protections on existing directory.
  2035.     Reported by Andreas Schwab.
  2036.  
  2037.     * df.c: New option: --sync.  No longer perform sync by default.
  2038.     Do it only when this option is used.  Invoking sync can be very
  2039.     expensive, and it's not clear that doing so yields more up to date
  2040.     results.  With encouragement/prodding from Paolo Zeppegno
  2041.     (paolo@to.sem.it), Nick Holloway, and Kaveh Ghazi.
  2042.  
  2043. Thu Oct 20 00:52:59 1994  Jim Meyering  (meyering@comco.com)
  2044.  
  2045.     * system.h [!S_IEXEC]: Define as S_IXUSR.
  2046.  
  2047.     * cp.h [S_IEXEC]: Remove definition.  cp.c doesn't use it.
  2048.  
  2049.     * ls.c [!INT_MAX]: Define to 2^31 - 1 so subsequent #if test works.
  2050.     [S_IEXEC]: Remove definition.  It's in system.h now.
  2051.     (usage): Sort options, but without segregating upper and lower case.
  2052.  
  2053.     * ls.c: Support for new option: --dired (-D).
  2054.     (dired, dired_pos, dired_obstack, subdired_obstack): Global variables.
  2055.     [PUTCHAR, FPUTS, FPUTS_LITERAL, PUSH_CURRENT_DIRED_POS]: New macros
  2056.     (dired_dump_obstack, quote_filename): New functions.
  2057.     (main): Initialize obstacks.
  2058.     (decode_switches): Recognize -D.
  2059.     (print_dir): Make arguments `const.'
  2060.     Record directory name indices in obstack.
  2061.     (print_dir, print_long_format, print_type_indicator): Use macros
  2062.     FPUTS, FPUTS_LITERAL, PUTCHAR for output.
  2063.     (print_long_format): Record file name indices in obstack.
  2064.     (print_name_with_quoting): Just call quote_filename and output the
  2065.     result.
  2066.  
  2067. Mon Oct 17 23:56:36 1994  Jim Meyering  (meyering@comco.com)
  2068.  
  2069.     * savedir.c: Indent CPP conditionals.  Change some #ifdefs to #ifs.
  2070.     From Franc,ois Pinard.
  2071.  
  2072. Mon Oct 17 10:27:26 1994  David J. MacKenzie  (djm@duality.gnu.ai.mit.edu)
  2073.  
  2074.     * lib/dirname.c: Use strrchr, not rindex.
  2075.  
  2076. Sun Oct 16 07:53:27 1994  Jim Meyering  (meyering@comco.com)
  2077.  
  2078.     * system.h (S_IXUSR, S_IXGRP, S_IXOTH): Define these in terms of
  2079.     S_IEXEC if they're not already defined. From Kaveh Ghazi.
  2080.  
  2081.     * eaccess.c (eaccess_stat): Don't use NULL in comparison.
  2082.     Some systems don't define it except in stdio.h -- and including
  2083.     (yes, just including) stdio.h has been known to significantly
  2084.     increase object code size (though admittedly, that probably
  2085.     happens only on old systems).  Kaveh Ghazi reported the problem.
  2086.  
  2087.     * src/Makfile.in lib/Makfile.in (DEFS): Remove -Dlint.
  2088.     It causes problems on broken pyramid system.
  2089.     From Kaveh Ghazi.
  2090.  
  2091. Sat Oct 08 10:39:32 1994  Jim Meyering  (meyering@comco.com)
  2092.  
  2093.     * mountlist.c: Always include <sys/param.h> if it exists.
  2094.     (fstype_to_string) [__NetBSD__]: Don't define this function.
  2095.     (read_filesystem_list) [__NetBSD__]: Use fsp's f_fstypename field,
  2096.     rather than fstype_to_string (f_type).  With suggestions from
  2097.     Greg Hudson (ghudson@mit.edu).
  2098.  
  2099.     * lib/Makefile.in (OBJECTS): Remove eaccess.o.
  2100.     * configure.in (AC_REPLACE_FUNCS): Add `eaccess' here instead.
  2101.     The Hurd and Linux will have it.
  2102.  
  2103. Fri Oct 07 20:27:48 1994  Jim Meyering  (meyering@comco.com)
  2104.  
  2105.     * (doc): New subdirectory with texinfo documentation.
  2106.     * fileutils.texi: Thanks to Franc,ois Pinard and Karl Berry!
  2107.  
  2108.     * Makefile.in (All of them): Update from the ones in sh-utils.
  2109.     From now on, rules and definitions that are comon to the fileutils,
  2110.     textutils, and sh-utils will get ChangeLog entries only in the
  2111.     sh-utils.
  2112.  
  2113.     * Makefile.in (install, uninstall): Prepend ginstall->install
  2114.     mapping to standard $(transform) sed mapping.
  2115.  
  2116.     * chgrp.c, chmod.c, chown.c, install.c, mkdir.c, mkfifo.c, mknod.c,
  2117.     rm.c, rmdir.c (main): Diagnose wrong number of argument -- usually
  2118.     too few -- instead of just referring the user to the --help option.
  2119.     * mknod.c (main): Give diagnostics explaining specific problems
  2120.     instead of just the usage message.  Reported by Karl Berry.
  2121.  
  2122.     * configure.in: Overhaul tests that determine how to get filesystem
  2123.     usage statistics.  Now, most use AC_TRY_RUN and test for the precise
  2124.     feature that will be used.  I know that that will make configuring a
  2125.     little harder for the people who cross compile, but if one of them
  2126.     is annoyed enough (or complains loudly enough :-) maybe someone will
  2127.     find the time to add tests to be used solely when cross compiling.
  2128.     * acconfig.h (STAT_READ): Rename to STAT_READ_FILSYS.
  2129.     * fsusage.c: Reorganize accordingly.
  2130.  
  2131. Tue Oct 04 20:38:12 1994  Jim Meyering  (meyering@comco.com)
  2132.  
  2133.     * chmod.c (main): Remove trailing slashes from file name arguments.
  2134.     Otherwise, `chmod 600 foo/; chmod 700 foo/' failed with the error
  2135.     `chmod: foo/: Permission denied' under Linux 1.1.51.  Reported by
  2136.     Thomas Koenig (ig25@fg70.rz.uni-karlsruhe.de).
  2137.     * chown.c (main): Likewise.
  2138.  
  2139. Thu Oct  2 23:03:32 1994  Jim Meyering  (meyering@comco.com)
  2140.  
  2141.     * configure.in: Replace obsolete AC_DIR_HEADER with AC_HEADER_DIRENT
  2142.     and AC_FUNC_CLOSEDIR_VOID.
  2143.  
  2144.     * configure.in: Remove AC_SIZEOF_TYPE(int).
  2145.     ls.c: Instead of comparing SIZEOF_INT == 2, compare INT_MAX to 2^16.
  2146.     Suggestion from Roland McGrath.
  2147.  
  2148. Sat Oct 01 21:23:27 1994  Jim Meyering  (meyering@comco.com)
  2149.  
  2150.     * src/*.c: Remove CONFIG_BROKETS conditional.
  2151.  
  2152.     * {*/,}Makefile.in: Revamp to look much like those in sh-utils.
  2153.     * acconfig.h (HAVE_FTRUNCATE): Remove it.
  2154.     (ino_t, D_INO_IN_DIRENT): Add these.
  2155.  
  2156.     * configure.in: Convert for autoconf-2.0.
  2157.     * backupfile.c: Likewise.
  2158.     * savedir.c: Likewise.
  2159.  
  2160.     * mkdir.c, rmdir.c: Split the two functions from old mkdir.c into
  2161.     separate files.
  2162.  
  2163.     * chgrp.c [_POSIX_VERSION]: Test this instead of _POSIX_SOURCE.
  2164.  
  2165.     * ls.c: Don't use SIZEOF_INT because it would require configure
  2166.     to run a program -- then cross compilers would lose.  Instead,
  2167.     compare INT_MAX to 64k-1 since all we need to know is whether
  2168.     an int is 2 bytes or larger.
  2169.  
  2170.     * rm.c [D_INO]: Use D_INO_IN_DIRENT rather than _POSIX_SOURCE in the
  2171.     test for how to define this macro.
  2172.  
  2173.     * system.h: Use HAVE_SYS_PARAM_H (not _POSIX_SOURCE) in test
  2174.     for whether to include <sys/param.h>.
  2175.     Likewise for <utime.h>.
  2176.     Update for DIRENT->HAVE_DIRENT_H etc. autoconf-2.0 changes.
  2177.     Ditto for VOID_CLOSEDIR->CLOSEDIR_VOID.
  2178.  
  2179.     * xgetcwd.c [!_POSIX_VERSION && !HAVE_GETCWD]: Remove
  2180.     !defined (_POSIX_VERSION) conjunct.  From Kaveh Ghazi.
  2181.  
  2182. Mon Sep 26 17:47:17 1994  David J. MacKenzie  (djm@churchy.gnu.ai.mit.edu)
  2183.  
  2184.     * lib/*.c: Remove CONFIG_BROKETS conditional.
  2185.     * lib/Makefile.in src/Makefile.in: Don't define it.
  2186.  
  2187. Sun Sep 25 12:20:52 1994  Jim Meyering  (meyering@comco.com)
  2188.  
  2189.     * ln.c (do_link): Give a diagnostic when trying to make a hard
  2190.     link to a nonexistent source file.  Before, running the command
  2191.     `ln -i no-such-file existing-file' and responding `yes' to the
  2192.     prompt would both remove `existing-file' and fail to make a link.
  2193.     Karl Berry reported the problem.
  2194.  
  2195. Sat Sep 10 04:34:34 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
  2196.  
  2197.     * src/rm.c (remove_dir): Pass pathname to eaccess_stat.
  2198.  
  2199. Fri Sep  2 13:54:13 1994  Michael I Bushnell  <mib@geech.gnu.ai.mit.edu>
  2200.  
  2201.     * lib/Makefile.in (safe-lstat.c, safe-lstat.h, safe-stat.c,
  2202.     safe-stat.h): Use $(srcdir) to find source files.
  2203.     (.c.o): Use -I. to get safe-lstat.h and safe-stat.h from the
  2204.     build directory.
  2205.     * src/Makefile.in (incl): Add -I../lib to get lib/safe-lstat.h and
  2206.     lib/safe-stat.h from the build directory.
  2207.  
  2208. Sat Aug 27 16:33:04 1994  Jim Meyering  (meyering@comco.com)
  2209.  
  2210.     * ln.c (main): Accept new option --no-dereference (-n).
  2211.     (do_link): If the destination command line argument is a symlink
  2212.     to a directory and --no-dereference is given, use that as the
  2213.     destination instead of the file in the directory.
  2214.     * ln.1: Document this.
  2215.  
  2216.     * system.h [BROKEN_STAT_MACROS]: Remove unnecessary #ifdef's.
  2217.     From Francois Pinard.
  2218.  
  2219.     * isdir.c, makepath.c, rename.c [STAT_MACRO_BROKEN]: Remove
  2220.     spurious #ifdef's.
  2221.  
  2222. Thu Aug 25 00:12:20 1994  Jim Meyering  (meyering@comco.com)
  2223.  
  2224.     * dd.c (copy): Clean up and fix off-by-one error when freeing
  2225.     the input buffer.
  2226.  
  2227. Thu Aug 18 11:41:16 1994  Jim Meyering  (meyering@comco.com)
  2228.  
  2229.     * du.c (du_files) [HAVE_FCHDIR]: Use open (".", ...) and fchdir
  2230.     instead of xgetcwd and chdir.  Otherwise, running du in a subdirectory
  2231.     of an unreadable directory would fail because xgetcwd fails.
  2232.     * configure.in (AC_HAVE_FUNCS): Add fchdir.  AIX-2.3 (for one)
  2233.     doesn't have it.
  2234.  
  2235.     * lib/Makefile.in (DISTFILES): Include getdate.c and posixtim.c
  2236.     so one doesn't need $(YACC).
  2237.     Add dependencies on safe-stat.h.
  2238.  
  2239. Sat Jul 30 08:08:02 1994  Jim Meyering  (meyering@comco.com)
  2240.  
  2241.     * du.c (main): Don't initialize automatic array CWD_ONLY in declaration.
  2242.     Some compilers don't allow that.
  2243.  
  2244.     * backupfile.c [DIRENT]: Remove spurious `|| defined(_POSIX_VERSION)'.
  2245.     * savedir.c: Ditto.
  2246.  
  2247.     * safe-xstat.c.in, safe-xstat.h.in: New files.
  2248.     * lib/Makefile.in: Add rules and dependencies for building safe-stat.c,
  2249.     safe-stat.h, safe-lstat.c, and safe-lstat.h from them.
  2250.  
  2251.     * eaccess.c (eaccess): Use SAFE_STAT instead of stat
  2252.     (and/or SAFE_LSTAT instead of lstat) to avoid unnecessary failure
  2253.     on systems for which stat (lstat) can return EINTR.
  2254.     * fsusage.c (statfs): Ditto.
  2255.     * isdir.c (isdir): Ditto.
  2256.     * makepath.c (make_path): Ditto.
  2257.     * rename.c (rename): Ditto.
  2258.     * chgrp.c (change_file_group): Ditto.
  2259.     * chmod.c (change_file_mode): Ditto.
  2260.     * chown.c (change_file_owner): Ditto.
  2261.     * cp-hash.c (remember_created): Ditto.
  2262.     * cp.c (main, do_copy): Ditto.
  2263.     * df.c (main, show_point): Ditto.
  2264.     * du.c (main, du_files, count_entry): Ditto.
  2265.     * install.c (copy_file): Ditto.
  2266.     * ln.c (main, do_link): Ditto.
  2267.     * ls.c (gobble_file): Ditto.
  2268.     * mv.c (is_real_dir, do_move): Ditto.
  2269.     * mvdir.c (main): Ditto.
  2270.     * rm.c (rm): Ditto.
  2271.     * touch.c (main, touch): Ditto.
  2272.  
  2273.     * Makefile.in (install): Tell GNU make that this target is .PHONY
  2274.     so it doesn't unnecessarily build ./install from install.sh.
  2275.  
  2276. Tue Jul 26 11:33:53 1994  Jim Meyering  (meyering@comco.com)
  2277.  
  2278.     * system.h: Remove `|| defined(_POSIX_VERSION)' from test that
  2279.     decides whether to include <fcntl.h>.  From Francois Pinard.
  2280.  
  2281. Sun Jul 03 08:44:00 1994  Jim Meyering  (meyering@comco.com)
  2282.  
  2283.     * configure.in [AC_HAVE_HEADERS]: Add sys/param.h, for definition
  2284.     of HAVE_SYS_PARAM_H, now tested in pathmax.h.
  2285.  
  2286.     * makepath.c (make_path): Avoid spurious failure for file names
  2287.     that contain `/.' or `/..'.  From Andreas Schwab
  2288.     <schwab@issan.informatik.uni-dortmund.de>.
  2289.  
  2290.     * dd.c (main): Handle SIGPIPE like other interrupts.
  2291.     From Scott L. Burson <gyro@zeta-soft.com>.
  2292.  
  2293.     * df.c (main, show_dev, usage): New option --print-type=fstype.
  2294.     From Arne Henrik Juul.
  2295.     * df.1: Update.
  2296.  
  2297. Thu Jun 30 10:28:32 1994  Jim Meyering  (meyering@comco.com)
  2298.  
  2299.     * ls.c (longdiff) [SIZEOF_INT == 2]: Choose which version of this
  2300.     macro to use based on SIZEOF_INT rather than obsolete INT_16_BITS.
  2301.     [INODE_DIGITS]: New macro.
  2302.     (print_long_format): Use it.
  2303.     (print_file_name_and_frills): Ditto.
  2304.     (length_of_file_name_and_frills): Ditto.
  2305.     (print_long_format): Add a couple casts to unsigned types.
  2306.  
  2307.     * ls.c: Change type name from `struct file' to `struct fileinfo'.
  2308.     David J. Mackenzie reported a name conflict on HPUX with the former.
  2309.  
  2310.     * dd.c (copy): Allocate an extra byte so I/O buffer begins on an
  2311.     even address.  This because the ITOS 3000WS running SEIUX 3.1
  2312.     (a descendant of MIPS RISC/OS 4.x) has SCSI device drivers that
  2313.     require the I/O buffer begin on an even address.  From
  2314.     Tilman Schmidt <tilman@gb1.sema.de>.
  2315.  
  2316. Mon Jun 20 23:45:34 1994  Jim Meyering  (meyering@comco.com)
  2317.  
  2318.     * configure.in: Use AC_PROGRAM_PATH to get values for LN, MV, RM.
  2319.     (AC_HAVE_FUNCS): Add getgroups.
  2320.     (AC_OUTPUT): Remove touch command.
  2321.  
  2322.     * eaccess.c (in_group): Remove static function.  Use group_member
  2323.     instead.
  2324.     (eaccess_stat, eaccess): Change calling sequence to take filename.
  2325.     Save UID and GID and use access if they are the same as effective IDs.
  2326.     (main) [TEST]: Test driver.
  2327.     * cp.c (copy): Update callers.
  2328.     * mv.c (do_move): Ditto.
  2329.     * rm.c (remove_file): Ditto.
  2330.  
  2331.     * cp.c (copy): With --preserve (-p) for non-root users, don't even
  2332.     try to preserve file ownership in chown call.  Otherwise, on systems
  2333.     with the mis-feature allowing non-root users to change file ownership,
  2334.     the subsequent chmod would fail.
  2335.  
  2336.     * userspec.c (parse_user_spec): Rewrite.  Be careful to free all
  2337.     allocated memory upon error.
  2338.     (main) [TEST]: Test driver.
  2339.  
  2340.     * src/Makefile.in (uninstall): Delete $(LIBPROGS) one at a time
  2341.     instead of like `rm -f $(libdir)/$(LIBPROGS)'.  The old way loses
  2342.     when LIBPROGS is empty and $(libdir) is a non-directory, and would
  2343.     lose if LIBPROGS could ever have more than one word.
  2344.     * (RM, LN, MV, INSTALL): Use values determined by ./configure instead
  2345.     of the newly built binaries so people can build with a cross
  2346.     compiler and still run `make (un)install.'
  2347.  
  2348.     * chgrp.c (change_file_group): Give a better error message when
  2349.     failing because the invoking user does not belong to the requested
  2350.     group.  This affects systems on which chown sets errno to EPERM
  2351.     for both `inaccessible file' and `user not a member of the specified
  2352.     group' errors.  Before, `chgrp bin file-I-own' would give the
  2353.     misleading and incorrect diagnostic `chgrp: file-I-own: Not owner'.
  2354.     Now it reports `you are not a member of group `bin''.
  2355.     Thomas A Peterson (tap@src.honeywell.com) reported this weakness.
  2356.  
  2357.     * long-options.c: Move from src/ to lib/.
  2358.     * long-options.h: Ditto.
  2359.     * src/Makefile.in: Remove references to long-options.[ch].
  2360.     * lib/Makefile.in (SOURCES, OBJECTS): Add long-options.[co].
  2361.  
  2362. Sat Jun 18 15:45:34 1994  Jim Meyering  (meyering@comco.com)
  2363.  
  2364.     * du.c (count_entry): Print "/" instead of zero-length string.
  2365.     From Kjetil Torgrim Homme <kjetilho@ifi.uio.no>.
  2366.  
  2367. Sun May 29 13:43:50 1994  Jim Meyering  (meyering@comco.com)
  2368.  
  2369.     * group-member.c: New file.
  2370.     * lib/Makefile.in (SOURCES, OBJECTS): Add group-member.[co].
  2371.  
  2372.     * sync.c: New file.
  2373.     * Makefile.in (PROGS): Add sync.
  2374.     (SOURCES): Add sync.c
  2375.     * src/Makefile.in: Add rules and dependencies for sync.
  2376.  
  2377.     * configure.in: Use AC_SET_MAKE and AC_PROG_INSTALL.
  2378.     If AC_FUNC_CHECK doesn't find getgroups, add -lbsd if possible.
  2379.     This was reported by Tilman Schmidt <ts@gb1.sema.de>
  2380.     to be necessary on an ITOS 3000WS running SEIUX 3.1.
  2381.  
  2382.     * Makefile.in: Edit MAKE assignments into @SET_MAKE@.
  2383.     (Makefile): Remove dependencies on */Makefile.in.
  2384.     Change the rule so running config.status creates only Makefile.
  2385.     (stamp-config): Have config.status generate only config.h.
  2386.  
  2387.     * {lib,man,src}/Makefile.in (Makefile): Add single dependency on
  2388.     Makefile.in and rule to make config.status create only Makefile.
  2389.  
  2390.     * system.h: Move from lib to src.
  2391.     * src/Makefile.in (DISTFILES): Add system.h.
  2392.     * lib/Makefile.in (DISTFILES): Remove system.h.
  2393.  
  2394. Mon Apr 18 19:54:24 1994  Jim Meyering  (meyering@comco.com)
  2395.  
  2396.     * documentation: Change uses of `pathname' and `path' as per
  2397.     GNU standards.
  2398.  
  2399. Fri Apr 15 20:41:15 1994  Jim Meyering  (meyering@comco.com)
  2400.  
  2401.     * mv.c (main): Give a reason for failure when given fewer than
  2402.     two non-option arguments, rather than just the pointer to --help.
  2403.     * ln.c (main): Ditto, but for no non-option arguments.
  2404.  
  2405.     * configure.in: Update for autoconf-1.8.
  2406.     Use AC_CHECKING instead of echo.
  2407.     Use AC_SIZEOF_TYPE instead of obsolete AC_INT_16_BITS.
  2408.  
  2409. Wed Apr 13 11:18:19 1994  Jim Meyering  (meyering@comco.com)
  2410.  
  2411.     * cp.c (copy_reg): Correct off-by-DEV_BSIZE error in test for
  2412.     whether a file has holes.  From Michael Bushnell <mib@gnu.ai.mit.edu>.
  2413.  
  2414. Wed Mar 30 08:53:21 1994  Jim Meyering  (meyering@comco.com)
  2415.  
  2416.     * configure.in: Use AC_SET_MAKE.
  2417.     * Makefile.in: Edit MAKE assignments into @SET_MAKE@.
  2418.  
  2419. Mon Mar 14 11:01:09 1994  Jim Meyering  (meyering@comco.com)
  2420.  
  2421.     * fsusage.c (adjust_blocks): Return -1 when FROMSIZE is non-positive.
  2422.     Suggestion from Andries.Brouwer@cwi.nl.  He reported that df failed
  2423.     with divide by zero when trying to process an entry for an nfs file
  2424.     system mounted over a SLIP line after the SLIP connection had been
  2425.     broken.
  2426.     [convert_blocks]: Rename macro to CONVERT_BLOCKS.
  2427.  
  2428. Sat Jan 29 13:24:07 1994  Jim Meyering  (meyering@comco.com)
  2429.  
  2430.     * du.c (main): Call du_files (with ".") when there are no
  2431.     non-option arguments rather than treating that as a special case.
  2432.     (du_files): Ignore return value from count_entry.
  2433.     (count_entry): Accumulate file sizes into new global sum used for
  2434.     the -c option;  the return value is unchanged and is still used
  2435.     by recursive calls.  Now, using -S and -c together works.
  2436.     Add parentheses to clarify precedence.
  2437.  
  2438. Fri Jan 28 11:02:21 1994  Jim Meyering  (meyering@comco.com)
  2439.  
  2440.     * configure.in: Don't set LDFLAGS since linking now uses both
  2441.     LDFLAGS and CFLAGS.
  2442.  
  2443. Thu Jan 13 17:27:38 1994  Jim Meyering  (meyering@comco.com)
  2444.  
  2445.     * src/Makefile.in: Change all link commands to use both $(CFLAGS)
  2446.     and $(LDFLAGS).
  2447.  
  2448. Mon Jan 10 01:20:38 1994  Jim Meyering  (meyering@comco.com)
  2449.  
  2450.     * man/Makefile.in (manprefix): Use binprefix as the default.
  2451.  
  2452. Thu Dec 30 23:11:10 1993  Jim Meyering  (meyering@comco.com)
  2453.  
  2454.     * The following changes are necessary to avoid spurious failures
  2455.     when a read or write system call is interrupted (e.g. by SIGTSTP).
  2456.     A POSIX implementation of those system calls may either return
  2457.     -1 and set errno to EINTR or return a positive value indicating
  2458.     that a partial read or write has completed successfully.  On Linux
  2459.     0.99.14, interrupted read and write system calls return -1/EINTR.
  2460.     Thanks to Bruno Haible <haible@ma2s2.mathematik.uni-karlsruhe.de>
  2461.     for pointing this out.
  2462.  
  2463.     * full-write.c, safe-read.c: New files.
  2464.  
  2465.     * cp.c (copy_reg): Use full_write instead of write.  Handle
  2466.     errno == EINTR (instead of failing) after read system call.
  2467.     * dd.c (skip): Handle errno == EINTR (instead of failing) after
  2468.     read system call.
  2469.     (copy): Use safe_read instead of read.
  2470.     * install.c (copy_file): Use safe_read and full_write instead of
  2471.     read and write system calls.
  2472.     * mv.c (copy_reg): Ditto.
  2473.     * touch.c (utime_now): Ditto.
  2474.  
  2475. Tue Dec 28 15:49:32 1993  Jim Meyering  (meyering@comco.com)
  2476.  
  2477.     * install.sh: New file.
  2478.     Makefile.in [DISTFILES]: Add it.
  2479.  
  2480. Sat Dec 18 01:12:24 1993  Jim Meyering  (meyering@comco.com)
  2481.  
  2482.     * configure.in (AC_OUTPUT): Put `touch stamp-config' in second arg
  2483.     so it goes in config.status.  This eliminates unnecessary second run
  2484.     of configure.
  2485.  
  2486. Thu Nov 18 00:03:24 1993  Jim Meyering  (meyering@comco.com)
  2487.  
  2488.     * configure.in [STAT_STATFS2_FSIZE]: Fix test (that had obsolete
  2489.     and now-broken use of AC_HEADER_EGREP) so that this flag is set
  2490.     for NetBSD 0.9.
  2491.  
  2492. Mon Oct 25 20:27:00 1993  Jim Meyering  (meyering@comco.com)
  2493.  
  2494.     * cp-aux.c, df.c, install.c, ln.c, ls.c, mkdir.c, mkfifo.c,
  2495.     mknod.c, mv.c, touch.c: Use the preferred `--longopt=arg'
  2496.     syntax in --help message rather than `--longopt arg'.
  2497.     From Francois Pinard.
  2498.  
  2499. Tue Oct 19 07:02:18 1993  Jim Meyering  (meyering@comco.com)
  2500.  
  2501.     * Version 3.9.
  2502.  
  2503. Mon Oct 18 00:13:40 1993  Jim Meyering  (meyering@comco.com)
  2504.  
  2505.     * src/*.c (usage): Now the usage message is simply
  2506.     "Try `%s --help' for more information.  From Francois Pinard.
  2507.  
  2508.     * src/Makefile.in [LIBPROGS]: Depend on ../lib/libfu.a and
  2509.     version.o.  From Francois Pinard.
  2510.  
  2511.     * src/*.c (usage): Remove blank line before "Try `%s --help..."
  2512.     in usage message.
  2513.  
  2514. Sun Oct 17 00:19:58 1993  Jim Meyering  (meyering@comco.com)
  2515.  
  2516.     * fileblocks.c [!NINDIR]: Define BSIZE only if it's not already
  2517.     defined.
  2518.  
  2519.     * ls.c (print_long_format): Cast printf args major and minor
  2520.     so they'll have types matching %u format even on systems
  2521.     where those macros have signed type.
  2522.  
  2523. Sat Oct 16 00:25:42 1993  Jim Meyering  (meyering@comco.com)
  2524.  
  2525.     * chmod.c (change_file_mode): Reapply Oct 6 change for symlinks.
  2526.     Somehow it got removed from working sources.
  2527.  
  2528.     * lib/Makefile.in [OBJECTS]: Change dependency to ../config.h so
  2529.     it works when building in a subdirectory.  From Rick Sladkey
  2530.     (jrs@world.std.com).
  2531.  
  2532. Wed Oct 13 19:43:47 1993  Jim Meyering  (meyering@comco.com)
  2533.  
  2534.     * cp.c (copy), ls.c (get_link_name): Complete Aug 27 change so
  2535.     that we use PATH_MAX + 1 rather than sizeof(char*) as size of
  2536.     buffer in readlink call.  This was causing spurious errors.
  2537.  
  2538.     * cp.c (copy), mv.c (do_move), rm.c (remove_file, remove_dir):
  2539.     Cast to `unsigned int' stat->st_mode printf arguments corresponding
  2540.     to %o formats to avoid warnings.
  2541.  
  2542.     * lib/Makefile.in [DEFS]: Remove -DMVDIR.  Add -DCONFIG_BROKETS.
  2543.     (rename.o): Add a specific rule.  Use -DMVDIR=... here instead.
  2544.  
  2545.     * src/Makefile.in [DEFS]: Add -DCONFIG_BROKETS.
  2546.     (distclean): Don't delete dir.c and vdir.c; they aren't
  2547.     created anymore.
  2548.  
  2549.     * lib/Makefile.in: Make all .o files depend on $(srcdir)/../config.h.
  2550.     * src/Makefile.in: Ditto.
  2551.  
  2552. Sun Oct 10 13:38:54 1993  Jim Meyering  (meyering@comco.com)
  2553.  
  2554.     * src/Makefile.in (dist): Depend on $(DISTFILES).
  2555.  
  2556.     * src/Makefile.in [libdir, LIBPROGS]: Define them.
  2557.     From Francois Pinard.
  2558.  
  2559.     * posixtm.y: [HAVE_CONFIG_H, CONFIG_BROKETS]: Include <config.h>
  2560.     or "config.h".  From Francois Pinard.
  2561.  
  2562.     * makepath.c: [HAVE_CONFIG_H, CONFIG_BROKETS]: Remove the duplicate
  2563.     #ifdef block following the alloca #ifdefs.  From Francois Pinard.
  2564.  
  2565.     * df.c: Remove unnecessary dcl of strstr.
  2566.  
  2567. Sat Oct  9 13:30:28 1993  Jim Meyering  (meyering@comco.com)
  2568.  
  2569.     * configure.in [STATFS_OSF1]: Change name to STAT_STATFS3_OSF1
  2570.     to be consistent with names of the other STAT_* macros.
  2571.     * acconfig.h: Ditto.
  2572.     * fsusage.c: Ditto.
  2573.  
  2574.     * acconfig.h: Add comments.
  2575.     * Makefile.in: Remove comments about -D flags that could be added
  2576.     to DEFS; now (using autoheader) those comments end up in config.h.
  2577.  
  2578.     * Makefile.in (configure, config.h.in): Warn that they may not be
  2579.     up to date.  Don't touch them.
  2580.  
  2581.     * ls.c (usage): Split long usage string between two fprintf
  2582.     statements to avoid default limit of SGI's cc on string length.
  2583.  
  2584.     * Makefile.in, src/Makefile.in [PROGS]: Alphabetize.
  2585.  
  2586.     * configure.in: Remove AC_UNISTD_H; add unistd.h to AC_HAVE_HEADERS.
  2587.  
  2588. Thu Oct 07 12:57:10 1993  Jim Meyering  (meyering@comco.com)
  2589.  
  2590.     * chgrp.c, chmod.c, chown.c, cp-aux.c, cp.c, dd.c, df.c, du.c,
  2591.     install.c, ln.c, ls.c, mkdir.c, mkfifo.c, mknod.c, mv.c, mvdir.c,
  2592.     rm.c, rmdir.c, touch.c (usage): Using --help gets long well-
  2593.     formatted help.  Now --help writes to stdout and exits successfully.
  2594.     From Francois Pinard <pinard@iro.umontreal.ca>.
  2595.  
  2596.     * lib/Makefile.in [libdir]: Make sure it's defined.
  2597.  
  2598.     * posixtm.y [!__GNUC__ && !HAVE_ALLOCA_H]: Declare alloca as void*
  2599.     rather than char*.  The latter conflicts with a dcl from bison.simple.
  2600.  
  2601. Wed Oct 06 18:22:00 1993  Jim Meyering  (meyering@comco.com)
  2602.  
  2603.     * chmod.c (change_file_mode): Add an argument to control how symbolic
  2604.     links are treated.
  2605.     (main, change_dir_mode): Reflect changed calling sequence.
  2606.     Now symlinks listed on the command line are processed (they
  2607.     were ignored before); the permissions of the dereferenced files are
  2608.     changed.  Symlinks encountered in recursive traversals are still
  2609.     ignored.  This makes GNU chmod act more like e.g. Sun's.
  2610.     From Nick Holloway <alfie@dcs.warwick.ac.uk>.
  2611.     * chmod.1: Document it.
  2612.  
  2613. Tue Oct 05 14:52:02 1993  Jim Meyering  (meyering@comco.com)
  2614.  
  2615.     * configure.in: Add AC_STAT_MACROS_BROKEN.
  2616.  
  2617.     * isdir.c, makepath.c, rename.c, system.h [STAT_MACROS_BROKEN]:
  2618.     Test this.
  2619.  
  2620.     * install.c (install_file_in_dir): Use stpcpy instead of slow sprintf.
  2621.  
  2622.     * argmatch.c, backupfile.c, basename.c, dirname.c, eaccess.c,
  2623.     fileblocks.c, fsusage.c, getversion.c, idcache.c, isdir.c,
  2624.     makepath.c, mountlist.c, rename.c, savedir.c, stripslash.c,
  2625.     userspec.c, xgetcwd.c, xstrdup.c, yesno.c, [HAVE_CONFIG_H,
  2626.     CONFIG_BROKETS]: Include <config.h> or "config.h".
  2627.  
  2628.     * lib/Makefile.in, src/Makefile.in [.c.o]: Put -I.. before
  2629.     -I$(srcdir) so <config.h> will get the right file.
  2630.  
  2631.     * chgrp.c, chmod.c, chown.c, cp-aux.c, cp-hash.c, cp.c, dd.c,
  2632.     df.c, du.c, install.c, ln.c, ls.c, mkdir.c, mkfifo.c, mknod.c,
  2633.     mv.c, mvdir.c, rm.c, rmdir.c, touch.c, version.c [HAVE_CONFIG_H,
  2634.     CONFIG_BROKETS]: Include <config.h> or "config.h".
  2635.  
  2636.     * configure.in [AC_CONFIG_HEADER]: Use it.
  2637.  
  2638.     * configure.in (rename.o) [MVDIR definition]: Remove it.
  2639.     * lib/Makefile.in [DEFS]: Put it here instead.
  2640.  
  2641.     * config.h.in, acconfig.h: New files
  2642.     * Makefile [DISTFILES]: Add them.
  2643.     (config.h.in): Add a rule to warn if it may need to be rebuilt.
  2644.  
  2645.     * lib/Makefile [YACC]: Get definition from @YACC@.
  2646.  
  2647.     * system.h: Include <unistd.h>.  This is needed for the definition
  2648.     of _POSIX_VERSION.
  2649.  
  2650. Thu Sep  9 08:52:10 1993  Jim Meyering  (meyering@comco.com)
  2651.  
  2652.     * src/*.c: Print version on standard output, not stderr.
  2653.  
  2654. Fri Aug 27 23:53:50 1993  Jim Meyering  (meyering@comco.com)
  2655.  
  2656.     * cp.c (copy), ls.c (get_link_name): Don't use PATH_MAX as array
  2657.     length in declarations because on some systems it gets defined
  2658.     to the function pathconf.  Use dynamic allocation instead.
  2659.  
  2660.     * fsusage.c (adjust_blocks): Use `1' instead of `+1'.  Many
  2661.     compilers don't parse the latter.  From Kaveh R. Ghazi.
  2662.  
  2663. Thu Aug 26 22:26:09 1993  Jim Meyering  (meyering@comco.com)
  2664.  
  2665.     * ls.c (print_long_format, print_file_name_and_frills): Cast inode
  2666.     number to unsigned long and print it with %lu to avoid warnings from
  2667.     gcc -Wformat because the size and type of ino_t are system dependent.
  2668.  
  2669.     * cp.c (do_copy): Plug a memory leak with --parents.
  2670.  
  2671.     * ln.c (main): Like mv and cp, convert `ln x y/' to ln x y/x
  2672.     when a is not a directory.
  2673.     [PATH_BASENAME_CONCAT]: New macro.
  2674.     (do_link): Use it here, too.
  2675.  
  2676.     * ls.c (sort_files): Add `default: abort();' clause to switch stmts.
  2677.  
  2678.     * cp.c (do_copy): Don't remove trailing slashes from source.
  2679.  
  2680. Wed Aug 25 21:40:00 1993  Jim Meyering  (meyering@comco.com)
  2681.  
  2682.     * cp.c: Add --parents as synonym for --path.  Change --path to
  2683.     --parents in comments.  --path is deprecated.
  2684.  
  2685.     * rm.c (clear_directory): Fix incorrect test for determining when
  2686.     to reallocate buffer.  Thanks to Ric Anderson <ric@CS.Arizona.EDU>.
  2687.  
  2688. Fri Aug 13 17:19:52 1993  Jim Meyering  (meyering@comco.com)
  2689.  
  2690.     * fsusage (adjust_blocks): Round away from zero -- this matters
  2691.     when computing the negative free-block count for disks that are
  2692.     more than 100% full.
  2693.  
  2694.     * mv.c (movefile): Use nested calls to stpcpy instead of sprintf.
  2695.     (is_real_dir): New function.
  2696.     (movefile): In addition to when dest is a directory, if dest has
  2697.     a trailing `/' and source is not a directory, presume the target
  2698.     is dest/`basename source`.  This converts `mv x y/' to `mv x y/x'
  2699.     when x is not a directory.  This change means that the command
  2700.     `mv any file/' will now fail rather than performing the move.
  2701.  
  2702.     * cp.c (do_copy): Similarly, convert `cp x y/' to cp x y/x when
  2703.     x is not a directory.
  2704.  
  2705. Wed Aug  4 17:43:18 1993  Jim Meyering  (meyering@comco.com)
  2706.  
  2707.     * ls.c (get_link_name): Don't ever use the stat field st_size as a
  2708.     buffer size.  Too many systems don't set it properly for mount points.
  2709.     Instead, use a fixed-length buffer.  From Michael Joosten
  2710.     <joost@ori.CAdlab.DE>.
  2711.     * cp.c (copy): Ditto.
  2712.  
  2713. Mon Jul 19 17:39:01 1993  Jim Meyering  (meyering@comco.com)
  2714.  
  2715.     * backupfile.c (concat): Temporary STR1_LENGTH should have type `int'
  2716.     instead of `char.'
  2717.  
  2718. Fri Jul 16 22:00:16 1993  David J. MacKenzie  (djm@goldman.gnu.ai.mit.edu)
  2719.  
  2720.     * dd.c (print_stats): Change message from "truncated blocks"
  2721.     to "truncated records" for final POSIX.2 spec.
  2722.  
  2723. Fri Jun 25 17:18:15 1993  Jim Meyering  (meyering@comco.com)
  2724.  
  2725.     * mkdir.c, rmdir.c: Change --path long option to --parents to avoid
  2726.     confusion with search-path semantics of --path as an option to other
  2727.     programs.  --path will still work, but is no longer documented.
  2728.  
  2729. Tue Jun  8 00:46:26 1993  Jim Meyering  (meyering@comco.com)
  2730.  
  2731.     * dd.c (parse_integer): Also accept `c' multiplier for consistency
  2732.     with find's -size option.
  2733.  
  2734. Thu May 27 00:03:51 1993  Jim Meyering  (meyering@comco.com)
  2735.  
  2736.     * Version 3.8.
  2737.  
  2738.     * configure.in (STAT_OSF1): Reference the statfs f_fsize member
  2739.     so that configure defines STAT_OSF1 only if there is such a member.
  2740.     Without such a reference, a Pyramid MIServer running OSx 5.1
  2741.     improperly defined STAT_OSF1 instead of the one it needed:
  2742.     STAT_STATFS2_BSIZE.
  2743.  
  2744. Wed May 26 00:57:46 1993  Jim Meyering  (meyering@comco.com)
  2745.  
  2746.     * ls.h, ls-ls.c ls-dir.c, ls-vdir.c: New files that define or
  2747.     simply set the new global variable ls_mode.  ls_mode defines whether
  2748.     the executable built from ls.o should act like ls, dir, or vdir.
  2749.     * ls.c (decode_switches): Use the variable instead of #ifdefs.
  2750.     This is modelled after the approach used in GNU binutils 2.x for
  2751.     ar and ranlib.  Here we avoid two redundant compilations.
  2752.  
  2753.     * install.c (change_attributes, copy_file, install_file_in_file):
  2754.     Don't call chown if we can efficiently determine that doing so is
  2755.     unnecessary.  On some systems, calls to chown (even with your own
  2756.     uid and gid) fail unless made by root.  On such systems install
  2757.     got spurious failures.
  2758.  
  2759. Sat May 22 02:13:12 1993  Jim Meyering  (meyering@comco.com)
  2760.  
  2761.     * Version 3.6.
  2762.  
  2763. Fri May 21 18:42:27 1993  Jim Meyering  (meyering@comco.com)
  2764.  
  2765.     * rename.c (rename): Be careful not to unlink `from' if it happens
  2766.     to be equal to `to' or (on filesystems that silently truncate
  2767.     filenames after 14 characters) if `from' and `to' share the
  2768.     significant characters.  From Bruno Haible
  2769.     <haible@ma2s2.mathematik.uni-karlsruhe.de>.
  2770.  
  2771.     * mountlist.c, fsusage.c: Make these work under m88k DolphinOS.
  2772.     From Kjetil Wiekhorst J|rgensen <jorgens@pvv.unit.no>.
  2773.  
  2774. Tue May 18 23:49:26 1993  Jim Meyering  (meyering@comco.com)
  2775.  
  2776.     * mkinstalldirs: New file.
  2777.     * Makefile.in (installdirs): Use it.
  2778.  
  2779. Sat May 15 01:20:26 1993  Jim Meyering  (meyering@comco.com)
  2780.  
  2781.     * ln.c (do_link): Make `ln -s dir_pathname .' work when the
  2782.     pathname has a trailing slash.
  2783.  
  2784. Fri May 14 23:45:52 1993  Jim Meyering  (meyering@comco.com)
  2785.  
  2786.     * all source: With --version, print version and exit immediately.
  2787.  
  2788. Wed May 12 20:48:55 1993  Jim Meyering  (meyering@comco.com)
  2789.  
  2790.     * configure.in: Add check for the -ldgc library that is required
  2791.     for getmntent on m88k DGUX-5.4 systems.
  2792.  
  2793.     * Makefile.in (installdirs): New rules for creating installation
  2794.     directories. (install): Depend on it.
  2795.  
  2796. Sat May  8 11:31:14 1993  Jim Meyering  (meyering@comco.com)
  2797.  
  2798.     * lib/Makefile.in (dist): Use `cp -p' instead of just `cp'
  2799.     if linking fails.
  2800.  
  2801. Thu May  6 22:45:25 1993  Jim Meyering  (meyering@comco.com)
  2802.  
  2803.     * makepath.c: Use explicit dcl of errno only if !STDC_HEADERS.
  2804.     Some systems have <errno.h> but don't declare errno.
  2805.     From Kaveh R. Ghazi <ghazi@caip.rutgers.edu>.
  2806.  
  2807.     * getdate.y: Test TIME_WITH_SYS_TIME, not TIME_AND_SYS_TIME.
  2808.  
  2809. Wed May  5 00:21:12 1993  Jim Meyering  (meyering@comco.com)
  2810.  
  2811.     * configure.in: Add AC_TIME_WITH_SYS_TIME.
  2812.     * getdate.y: Use it (this is a version local to fileutils).
  2813.  
  2814. Tue May  4 20:25:41 1993  Jim Meyering  (meyering@comco.com)
  2815.  
  2816.     * du.c (count_entry): Give an error and exit if chdir ("..") fails.
  2817.     From Bruce Evans <bde@runx.oz.AU>.
  2818.  
  2819.     * eaccess (eaccess_stat): Cast NGROUPS_MAX to appropriate types.
  2820.     From Bruce Evans <bde@runx.oz.AU>.
  2821.  
  2822. Mon May  3 22:09:24 1993  Jim Meyering  (meyering@comco.com)
  2823.  
  2824.     * configure.in: Add AC_GETGROUPS_T.
  2825.     * eaccess.c: Don't define GETGROUPS_T.  Now configure does it.
  2826.  
  2827. Sun May  2 09:18:53 1993  Jim Meyering  (meyering@comco.com)
  2828.  
  2829.     * configure.in: Check for libypsec.a on Dolphin M88K machines.
  2830.     This can result in significant speedup for programs that access
  2831.     YP information.  From Kjetil Wiekhorst J{\o}rgensen
  2832.     <jorgens@pvv.unit.no>.
  2833.  
  2834. Fri Apr 30 02:21:48 1993  Jim Meyering  (meyering@comco.com)
  2835.  
  2836.     * ls.c (main): Make `-f' work like on standard Unix ls, instead
  2837.     of as a short equivalent of --full-time.
  2838.     * ls.1: Document it.
  2839.  
  2840. Thu Apr 29 00:46:46 1993  Jim Meyering  (meyering@comco.com)
  2841.  
  2842.     * src/Makefile.in [dir.o, vdir.o]: Make ordering of CFLAGS etc
  2843.     in compilation rules consistent with that in .c.o rule.
  2844.  
  2845.     * Makefile.in (dist): Depend on Makefile so that changes to
  2846.     Makefile.in (like adding new files to DISTRIB) are reflected
  2847.     in the new distribution.
  2848.  
  2849. Tue Apr 27 21:35:11 1993  Jim Meyering  (meyering@comco.com)
  2850.  
  2851.     * configure.in: Remove unnecessary AC_PROG_INSTALL.
  2852.  
  2853. Fri Apr 23 23:39:16 1993  Jim Meyering  (meyering@comco.com)
  2854.  
  2855.     * {lib,src}/Makefile.in [.c.o]: Make CPPFLAGS and CFLAGS follow
  2856.     other options so users can use them to override DEFS.
  2857.  
  2858.     * lib/mktime.c: Use new version from glibc instead of one from
  2859.     libc-subst.  `touch' built with the latter didn't set proper
  2860.     time unless given a specific --date option.
  2861.  
  2862. Thu Apr 22 00:22:25 1993  Jim Meyering  (meyering@comco.com)
  2863.  
  2864.     * makepath.c: Decouple inclusion of errno.h from definition of
  2865.     STDC_HEADERS; many systems have errno.h, yet shouldn't define
  2866.     STDC_HEADERS.
  2867.     * makepath.c (make_path): Add EPERM clause only if both AFS and
  2868.     EPERM are defined.
  2869.     * configure.in: Test for errno.h header file.
  2870.  
  2871. Mon Apr 19 11:21:14 1993  Jim Meyering  (meyering@comco.com)
  2872.  
  2873.     * Version 3.5.
  2874.  
  2875.     * ls.c, touch.c: Don't include time.h explicitly -- it's included
  2876.     by system.h.  From Franc,ois Pinard.
  2877.  
  2878.     * posixtm.y: Use TM_IN_SYS_TIME.
  2879.  
  2880.     * backupfile.c [index, rindex]: Don't redefine them.
  2881.  
  2882.     * system.h [alloca]: Don't redefine it.
  2883.  
  2884.     * configure.in: Check for sys/time.h; getdate.y needs it for
  2885.     structs timeval and timezone on some systems.
  2886.  
  2887. Sun Apr 18 22:40:19 1993  David J. MacKenzie  (djm@kropotkin.gnu.ai.mit.edu)
  2888.  
  2889.     * ls.c: Include fnmatch.h after system.h, so we get our
  2890.     definitions of FNM_*, not those from unistd.h.
  2891.  
  2892.     * mountlist.c [MOUNTED_GETMNTINFO]: Add #ifdef around MOUNT_PC.
  2893.  
  2894.     * configure.in: Fix test for 4.4BSD statfs to not grep for a
  2895.     macro in cpp output.
  2896.  
  2897. Sun Apr 18 02:35:36 1993  Jim Meyering  (meyering@comco.com)
  2898.  
  2899.     * configure.in: Check for gettimeofday.
  2900.     Check for `struct tm'.
  2901.     Change MVDIR definition so it works with new AC_DEFINE.
  2902.  
  2903.     * system.h: Remove last vestiges of USG;  instead, use specific
  2904.     test for TM_IN_SYS_TIME to determine whether to include time.h
  2905.     or sys/time.h.
  2906.  
  2907.     * src/Makefile.in (install): Rewrite the test for whether to install
  2908.     mvdir so that it doesn't cause gratuitous failures with broken shells.
  2909.     Split long rule so the pieces fit in 80-column lines.
  2910.  
  2911. Thu Apr 15 23:44:01 1993  Jim Meyering  (meyering@comco.com)
  2912.  
  2913.     * lib/Makefile.in (posixtm.c): Add dependency on getdate.c to enforce
  2914.     sequential invocations of YACC.
  2915.     * (posixtm.c, getdate.c): Remove use of `bison -o' and associated
  2916.     conditional rename commands -- not needed since the parser generators
  2917.     won't be run in parallel;  now bison (when used) is always invoked
  2918.     with -y.
  2919.  
  2920. Tue Apr 13 09:18:18 1993  Jim Meyering  (meyering@comco.com)
  2921.  
  2922.     * configure.in: Find a parser generator.
  2923.     * Makefile.in [MDEFINES]: Add YACC to the list of variables passed to
  2924.     sub-makes.
  2925.     * lib/Makefile.in (posixtm.c, getdate.c): Try first to build with
  2926.     `bison -o' -- for parallel makes.  If that fails, use $(YACC).
  2927.  
  2928.     * posixtm.y [HAVE_MEMCPY && !HAVE_BCOPY]: Define bcopy in terms
  2929.     of memcpy for old versions of bison that generate parsers that
  2930.     use bcopy.
  2931.  
  2932.     * configure.in: Add tests for memcpy and bcopy.
  2933.  
  2934. Mon Apr 12 23:02:14 1993  Jim Meyering  (meyering@comco.com)
  2935.  
  2936.     * configure.in (mounted, space): Add filesystem checks for DEC Alpha
  2937.     running OSF/1 to complement new code in mountlist.c and fsusage.c.
  2938.  
  2939.     * lib/mountlist.c (read_filesystem_list) [MOUNTED_GETFSSTAT]: Add code
  2940.     to do it the OSF/1 way on a DEC alpha.
  2941.     From Brian Fox (bfox@tinker.crseo.ucsb.edu).
  2942.  
  2943.     * lib/fsusage.c (get_fs_usage) [STATFS_OSF1]: Add code to call OSF/1's
  2944.     variant of statfs.  From Brian Fox (bfox@tinker.crseo.ucsb.edu).
  2945.  
  2946. Sun Apr 11 20:29:31 1993  Jim Meyering  (meyering@comco.com)
  2947.  
  2948.     * df.c (main, show_dev): Don't list dummy (automounter) filesystems
  2949.     unless they're explicitly listed on the command line or if the -a
  2950.     option is given.
  2951.  
  2952. Fri Apr  9 11:40:48 1993  Jim Meyering  (meyering@comco.com)
  2953.  
  2954.     * src/Makefile.in [.c.o]: Put CFLAGS after include directives.
  2955.  
  2956. Wed Apr  7 23:54:48 1993  Jim Meyering  (meyering@comco.com)
  2957.  
  2958.     * eaccess.c: Undefine NGROUPS_MAX before redefining it.
  2959.     From ghazi@caip.rutgers.edu (Kaveh R. Ghazi).
  2960.  
  2961. Mon Apr  5 20:14:17 1993  Jim Meyering  (meyering@comco.com)
  2962.  
  2963.     * chgrp.c, chmod.c, chown.c, install.c, ls.c, mkfifo.c, mknod.c,
  2964.     touch.c: Add `case 0: break;' for long-only options help and version.
  2965.  
  2966. Sun Apr  4 09:38:00 1993  Jim Meyering  (meyering@comco.com)
  2967.  
  2968.     * src/*.c (usage): Mention --help and --version.
  2969.     (main): Handle flag_help and flag_version before checking for
  2970.     invocation errors.
  2971.  
  2972.     * cp.c (copy): Declare to be static.
  2973.  
  2974.     * cp.c (copy, make_path, re_protect): Explicitly cast alloca return
  2975.     value to (char *).
  2976.     * ln.c (do_link): Ditto
  2977.     * mv.c (do_move): Ditto
  2978.     * makepath.c (make_path): Ditto
  2979.  
  2980.     * lib/eaccess.c (eaccess_stat): Cast to unsigned the value to
  2981.     be right-shifted to avoid ANSI vs K&R semantic ambiguity.
  2982.  
  2983.     * src/Makefile.in (incl): New variable.
  2984.  
  2985.     * chown.c (main): Explicitly cast -1 to [ug]id_t to avoid compiler
  2986.     warnings.
  2987.  
  2988.     * cp.h: Remove unneeded extern dcl of exit_status.
  2989.  
  2990.     * basename.c [rindex]: Don't redefine it.
  2991.     * system.h [rindex, incl, bcopy, bzero]: Ditto.
  2992.     * userspec.c [index]: Ditto.
  2993.  
  2994.     * Makefile.in [CFLAGS, LDFLAGS]: Don't hard-code these; get their
  2995.     definitions from configure.
  2996.     * configure.in [CFLAGS, LDFLAGS]: Assign reasonable defaults.
  2997.  
  2998. Sat Apr  3 18:17:23 1993  Jim Meyering  (meyering@comco.com)
  2999.  
  3000.     * Makefile.in [Makefile]: Add dependencies and a rule to remake it.
  3001.     [targets that cd then run make in subdirectories]: Don't depend
  3002.     on `cd ..';  use a subshell instead.
  3003.     [info, install-info, dvi, check, installcheck]: New targets but no
  3004.     rules; comply with standards.
  3005.  
  3006.     * src/Makefile.in [.c.o, dir.o, vdir.o]: Put CFLAGS after DEFS and
  3007.     CPPFLAGS per standards.texi.
  3008.     Use automatically generated dependencies.
  3009.  
  3010.     * mvdir.c (main): Remove dcl of unused variable.
  3011.  
  3012. Thu Apr  1 18:05:48 1993  Jim Meyering  (meyering@comco.com)
  3013.  
  3014.     * install.c, chgrp.c, dd.c [isascii]: Undefine before redefining.
  3015.  
  3016.     * ls.c: Move some dcls so they appear before first function.
  3017.  
  3018.     * all programs: Add --help and --version options.
  3019.     * version.c: Remove `Version: ' and newlines from version string.
  3020.  
  3021.     * dd.c: Convert usage to take no arguments.
  3022.     * lib/Makefile.in [DISTFILES]: Add version.h.
  3023.  
  3024. Wed Mar 31 22:03:28 1993  Jim Meyering  (meyering@comco.com)
  3025.  
  3026.     * configure.in [MVDIR]: Don't quote right hand side.
  3027.     * backupfile.c, chgrp.c, install.c: Define isascii macro to be 1
  3028.     also if STDC_HEADERS.
  3029.  
  3030. Tue Mar 30 17:42:11 1993  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
  3031.  
  3032.     * ls.c: Add -G,--no-group option to inhibit display of group
  3033.     information.
  3034.     * ls.1: Document it.
  3035.  
  3036. Mon Mar 29 22:22:40 1993  Jim Meyering  (meyering@comco.com)
  3037.  
  3038.     * system.h [ST_NBLOCKS]:  Check also for __hpux.  From Henrik B}kman
  3039.     <Henrik.Bakman@csd.uu.se>.
  3040.  
  3041. Sun Mar 28 21:22:30 1993  Jim Meyering  (meyering@comco.com)
  3042.  
  3043.     * Makefile.in (dist): Use cp when hard link fails.
  3044.     Use tar-1.11.2's -z option instead of -Z.
  3045.  
  3046.     * makepath.c [index]: Don't redefine.
  3047.  
  3048. Fri Mar 26 00:32:39 1993  Jim Meyering  (meyering@comco.com)
  3049.  
  3050.     * df.c (add_excluded_fs_type, excluded_fs_type): New functions adding
  3051.     support for --exclude-type option.  Derived from Kaveh R. Ghazi
  3052.     <ghazi@caip.rutgers.edu>.
  3053.  
  3054.     * ls.c (decode_switches, print_long_format): New option: --full-time.
  3055.     From K. Richard Pixley (rich@rtl.cygnus.com)
  3056.  
  3057. Thu Mar 25 21:02:36 1993  David J. MacKenzie  (djm@goldman.gnu.ai.mit.edu)
  3058.  
  3059.     * dirname.c [rindex]: Don't redefine.
  3060.  
  3061. Tue Mar 23 23:13:33 1993  Jim Meyering  (meyering@comco.com)
  3062.  
  3063.     * ls.c (gobble_file): Don't stat symlinks unless we need to.
  3064.     From Mike Rendell <michael@mercury.cs.mun.ca>.
  3065.  
  3066.     * dd.c (copy, copy_with_block, copy_with_block): Decrement
  3067.     pending_spaces only if it's > 0. The following command didn't
  3068.     terminate:
  3069.     perl -e 'print "a  a\n";'| dd of=/dev/null ibs=1 cbs=3 conv=unblock
  3070.     With suggestions from Chris Weber <weber@bucknell.edu>,
  3071.     Marlys.A.Nelson@uwrf.edu, and Albert-Lunde@nwu.edu.
  3072.  
  3073. Fri Mar 05 00:02:53 1993  Jim Meyering  (meyering@comco.com)
  3074.  
  3075.     * chmod.c: Add long-named options.
  3076.  
  3077. Mon Feb 15 23:34:55 1993  Jim Meyering  (meyering@comco.com)
  3078.  
  3079.     * rm.c (remove_file): Don't ask about overriding a mode if the
  3080.     target is a symbolic link -- some systems (like SGI's Irix 4.0)
  3081.     zero the permissions fields of symbolic links.
  3082.     From Arne Henrik Juul (arnej@imf.unit.no).
  3083.  
  3084. Fri Dec 11 16:46:50 1992  David J. MacKenzie  (djm@kropotkin.gnu.ai.mit.edu)
  3085.  
  3086.     * rm.c (main): If -f is given, don't complain if no file args
  3087.     are given.
  3088.  
  3089. Tue Dec  8 21:09:16 1992  David J. MacKenzie  (djm@kropotkin.gnu.ai.mit.edu)
  3090.  
  3091.     * posixtm.y: Include alloca.h if HAVE_ALLOCA_H, not if sparc.
  3092.  
  3093. Mon Dec  7 20:09:59 1992  Jim Meyering  (meyering@idefix.comco.com)
  3094.  
  3095.     * install.c (isnumber), chgrp.c (change_file_group): Define ISDIGIT
  3096.     and use it instead of isdigit.
  3097.  
  3098.     * dd.c: Define ISLOWER and ISUPPER independent of STDC_HEADERS.
  3099.     Define ISDIGIT and use it instead of isdigit.
  3100.  
  3101. Wed Dec  2 12:28:10 1992  Jim Meyering  (meyering@idefix.comco.com)
  3102.  
  3103.     * all files using getopt.h: Convert static declarations of
  3104.     struct option to use new macros from getopt.h: no_argument,
  3105.     required_argument, and optional_argument.
  3106.  
  3107. Tue Nov 24 07:54:45 1992  David J. MacKenzie  (djm@goldman.gnu.ai.mit.edu)
  3108.  
  3109.     * system.h: Use HAVE_FCNTL_H instead of USG.
  3110.  
  3111.     * xgetcwd.c: Use HAVE_GETCWD instead of USG.
  3112.  
  3113.     * backupfile.c, basename.c, dirname.c, idcache.c, makepath.c,
  3114.     mountlist.c, stripslash.c, userspec.c, xstrdup.c, system.h:
  3115.     Use HAVE_STRING_H instead of USG.
  3116.  
  3117.     * system.h: Use SYSDIR and NDIR instead of USG.
  3118.     Define direct as dirent, not vice-versa.
  3119.     * ls.c, rm.c, backupfile.c, savedir.c: Use `struct dirent',
  3120.     not `struct direct'.
  3121.  
  3122. Thu Nov 12 23:10:56 1992  David J. MacKenzie  (djm@goldman.gnu.ai.mit.edu)
  3123.  
  3124.     * system.h: If dirent is #defined, don't define direct as dirent;
  3125.     for Sinix.  Derived from Heinfried Korn (korn@med-in.uni-sb.de).
  3126.  
  3127. Mon Nov  9 14:13:57 1992  Jim Meyering  (meyering@idefix.comco.com)
  3128.  
  3129.     * fsusage.c (adjust_blocks): Reverse Oct 31 change --
  3130.     the function is more readable than the macro.
  3131.  
  3132.     * All files in src: Make all functions and extern variables static.
  3133.     Make all longopts arrays const as well as static.
  3134.     Make a couple statically initialized aggregates `const.'
  3135.  
  3136. Sat Oct 31 16:32:17 1992  Jim Meyering  (meyering@idefix.comco.com)
  3137.  
  3138.     * fsusage.c (adjust_blocks): Convert to a macro.  The static
  3139.     function wasn't always used.
  3140.  
  3141.     * makepath.c, cp.c, ls.c: Add parentheses to expressions
  3142.     like (c = *p++) as per suggestion from gcc -Wall.
  3143.  
  3144.     * dd.c (swab_buffer): Fix typo that incremented pointer instead
  3145.     of counter.  Add braces around static struct initializers.
  3146.  
  3147. Fri Oct 30 11:40:58 1992  David J. MacKenzie  (djm@goldman.gnu.ai.mit.edu)
  3148.  
  3149.     * ln.c, cp.c (main): Make -s on systems without symlinks an
  3150.     error, not a warning.
  3151.  
  3152. Thu Oct 29 14:57:21 1992  David J. MacKenzie  (djm@kropotkin.gnu.ai.mit.edu)
  3153.  
  3154.     * Version 3.4.
  3155.  
  3156.     * cp.c (copy, re_protect), mv.c (copy_reg): Do utime and chown
  3157.     before chmod, so set[ug]id bits don't get nuked.
  3158.     Don't use fchmod.
  3159.  
  3160. Wed Oct 28 16:13:18 1992  David J. MacKenzie  (djm@kropotkin.gnu.ai.mit.edu)
  3161.  
  3162.     * cp.c, mv.c, ln.c: Rename some variables to use consistent
  3163.     terminology: source and destination.
  3164.  
  3165.     * ln.c, mkdir.c, mkfifo.c, mknod.c: Don't strip trailing slashes.
  3166.     * install.c: Don't strip slashes from dest. dirs.
  3167.  
  3168. Mon Aug 24 12:49:14 1992  David J. MacKenzie  (djm@nutrimat.gnu.ai.mit.edu)
  3169.  
  3170.     * xgetcwd.c: Make path_max unsigned, not long.  From Bruce Evans.
  3171.  
  3172. Sun Aug 23 03:06:04 1992  David J. MacKenzie  (djm@nutrimat.gnu.ai.mit.edu)
  3173.  
  3174.     * idcache.c: Use a union for uid_t and gid_t.  From
  3175.     bde@runx.oz.au (Bruce Evans).
  3176.  
  3177.     * eaccess.c: Use NGROUPS_MAX if it's defined.  386BSD is like sun.
  3178.  
  3179. Sat Aug 22 02:36:49 1992  David J. MacKenzie  (djm@churchy.gnu.ai.mit.edu)
  3180.  
  3181.     * makepath.c: Use uid_t and gid_t.
  3182.  
  3183.     * system.h, makepath.c: Use HAVE_ALLOCA_H, not sparc.
  3184.  
  3185.     * cp.c (make_path, re_protect): Allocate room for terminating NULs.
  3186.  
  3187. Fri Aug 21 21:12:18 1992  David J. MacKenzie  (djm@nutrimat.gnu.ai.mit.edu)
  3188.  
  3189.     * fsusage.c [STAT_STATVFS]: Use f_bsize if f_frsize is 0.
  3190.     From Paul M Reilly <pmr@rock.concert.net>.
  3191.  
  3192.     * xgetcwd.c [!errno]: Declare errno.  From Karl Berry.
  3193.  
  3194.     * chown.c (main, change_file_owner, change_dir_owner): Use
  3195.     uid_t and gid_t.  From Rob McMahon <cudcv@csv.warwick.ac.uk>
  3196.     and glaze@cs.mu.oz.au (Glaze).
  3197.  
  3198. Thu Jul 23 14:29:17 1992  David J. MacKenzie  (djm@nutrimat.gnu.ai.mit.edu)
  3199.  
  3200.     * Version 3.3.
  3201.  
  3202. Sat Jul 18 20:12:56 1992  David J. MacKenzie  (djm@nutrimat.gnu.ai.mit.edu)
  3203.  
  3204.     * idcache.c: Use uid_t and gid_t.
  3205.     (getuidbyname, getgidbyname): New functions, for cpio.
  3206.  
  3207.     * userspec.c: New file, from code in chown.c.
  3208.     * chown.c: Use it.
  3209.  
  3210. Fri Jul 17 00:43:38 1992  David J. MacKenzie  (djm@nutrimat.gnu.ai.mit.edu)
  3211.  
  3212.     * system.h: Protect from getopt prototype in stdlib.h.
  3213.  
  3214.     * ls.c [_AIX]: Include sys/ioctl.h.
  3215.     * fsusage.c: Include sys/vfs.h if AIX PS/2, but not if RS6000.
  3216.     From tranle@intellicorp.com (Minh Tran-Le).
  3217.  
  3218.     * mvdir.c: Declare getcwd.  From Francois Pinard.
  3219.  
  3220.     * chown.c, chgrp.c, install.c [_POSIX_SOURCE]: Define endpwent
  3221.     and endgrent as empty.
  3222.  
  3223.     * makepath.c (make_path): Add cast to alloca call.
  3224.     From Jim Meyering.
  3225.  
  3226.     * cp.c (copy, re_protect), mv.c (copy_reg): Notify root of
  3227.     EPERM errors from chown.
  3228.     * makepath.c, install.c [AFS]: Ignore EPERM from chown.
  3229.  
  3230.     * system.h (ST_NBLOCKS) [_AIX && _I386]: st_blocks is in 4K units.
  3231.     * fsusage.c (statfs) [_AIX && _I386]: Supply this function.
  3232.     From tranle@intellicorp.com (Minh Tran-Le).
  3233.  
  3234. Thu Jul 16 23:08:39 1992  David J. MacKenzie  (djm@nutrimat.gnu.ai.mit.edu)
  3235.  
  3236.     * df.c (print_header, show_dev): In inode format, print the
  3237.     total number of inodes as well.
  3238.  
  3239.     * fsusage.[ch], df.c (show_dev): Count internally using
  3240.     512-byte blocks, not 1024-byte, to avoid rounding errors.
  3241.  
  3242. Mon Jul  6 20:03:54 1992  David J. MacKenzie  (djm@nutrimat.gnu.ai.mit.edu)
  3243.  
  3244.     * rename.c: Use S_ISDIR instead of S_IFDIR.
  3245.  
  3246. Fri Jul  3 14:36:34 1992  David J. MacKenzie  (djm@nutrimat.gnu.ai.mit.edu)
  3247.  
  3248.     * fileblocks.c, system.h, cp.c, dd.c, mv.c, touch.c: Change
  3249.     FOO_MISSING to HAVE_FOO.
  3250.  
  3251. Wed Jun  3 19:28:04 1992  David J. MacKenzie  (djm@wookumz.gnu.ai.mit.edu)
  3252.  
  3253.     * xgetcwd.c (xgetcwd): Accept errno==EINVAL as nonfatal.
  3254.  
  3255. Wed May 20 00:05:52 1992  David J. MacKenzie  (djm@churchy.gnu.ai.mit.edu)
  3256.  
  3257.     * system.h: If we include a header file specifically to get
  3258.     major et al., assume we have them.
  3259.  
  3260. Mon May 11 20:04:10 1992  David J. MacKenzie  (djm@churchy.gnu.ai.mit.edu)
  3261.  
  3262.     * chgrp.c, chown.c: --show-changes -> --changes.
  3263.  
  3264. Sat May  9 18:39:38 1992  David J. MacKenzie  (djm@wookumz.gnu.ai.mit.edu)
  3265.  
  3266.     * system.h: Define DEV_BSIZE if not defined.
  3267.  
  3268. Thu Apr 30 13:55:37 1992  David J. MacKenzie  (djm@churchy.gnu.ai.mit.edu)
  3269.  
  3270.     * du.c (count_entry): Remove the trailing "/" before printing.
  3271.  
  3272. Wed Apr 29 11:34:38 1992  David J. MacKenzie  (djm@churchy.gnu.ai.mit.edu)
  3273.  
  3274.     * rename.c (rename): If removing `from' fails, remove `to' to
  3275.     clean up.  From Matthew Farwell <dylan@ibmpcug.co.uk>.
  3276.  
  3277. Thu Apr 23 21:14:16 1992  David J. MacKenzie  (djm@churchy.gnu.ai.mit.edu)
  3278.  
  3279.     * ls.c (gobble_file): Only read the link contents if -l or the
  3280.     file was named on the command line.
  3281.  
  3282. Wed Apr 22 02:16:38 1992  David J. MacKenzie  (djm@churchy.gnu.ai.mit.edu)
  3283.  
  3284.     * fsusage.c (get_fs_usage) [STAT_STATFS4 and _SEQUENT_]: Has f_bavail.
  3285.     From Donn Cave <donn@carson.u.washington.edu>.
  3286.  
  3287.     * getversion.c (get_version): If given invalid arg, exit.
  3288.  
  3289.     * cp.c (copy): Fix mode with chmod if copying as a regular file.
  3290.  
  3291.     * system.h, dd.c: SIGTYPE -> RETSIGTYPE.
  3292.  
  3293. Sat Apr 18 00:18:41 1992  David J. MacKenzie  (djm@wookumz.gnu.ai.mit.edu)
  3294.  
  3295.     * fsusage.[ch] (get_fs_usage): Take another arg, the device name.
  3296.     * fsusage.c (get_fs_usage) [STAT_READ]: Fix number of inodes
  3297.     calculation.  Use the device name.  From Brian Matthews.
  3298.     * df.c (show_dev): Pass the device name.
  3299.  
  3300. Fri Apr 17 11:25:28 1992  David J. MacKenzie  (djm@wookumz.gnu.ai.mit.edu)
  3301.  
  3302.     * fsusage.c: Special-case AIX.
  3303.  
  3304.     * mountlist.c [MOUNTED_VMOUNT]: New code for AIX, from
  3305.     Garrett A. Wollman (wollman@uvm.edu).
  3306.  
  3307.     * ls.c (gobble_file): Use stat, not lstat, on symlinked-to
  3308.     file, for Unix compat.  From ian@airs.com (Ian Lance Taylor).
  3309.  
  3310. Mon Apr  6 14:16:06 1992  David J. MacKenzie  (djm@wookumz.gnu.ai.mit.edu)
  3311.  
  3312.     * xgetcwd.c: Include stdio.h to get NULL.
  3313.  
  3314. Thu Apr  2 14:41:18 1992  David J. MacKenzie  (djm@wookumz.gnu.ai.mit.edu)
  3315.  
  3316.     * df.c: Call sync only once, instead of once per filesystem.
  3317.  
  3318. Wed Apr  1 16:00:08 1992  David J. MacKenzie  (djm@wookumz.gnu.ai.mit.edu)
  3319.  
  3320.     * Version 3.2.
  3321.  
  3322. Tue Mar 31 13:39:06 1992  David J. MacKenzie  (djm@wookumz.gnu.ai.mit.edu)
  3323.  
  3324.     * df.c (main): stat all arg pathnames before getting
  3325.     list of mounted filesystems.
  3326.     (show_entry, show_point): Take a struct stat * as another arg,
  3327.     to avoid repeatedly statting files.
  3328.  
  3329. Mon Mar 30 12:21:28 1992  David J. MacKenzie  (djm@wookumz.gnu.ai.mit.edu)
  3330.  
  3331.     * install.c (main): Allow symbolic modes for -m.
  3332.     (atoo): Function removed.
  3333.  
  3334.     * mkdir.c (main): Include invalid -m arg in error message.
  3335.  
  3336.     * fsusage.c (get_fs_usage) [STAT_STATFS4]: Go back to using
  3337.     512 instead of f_bsize.  Empirically, it gives the right answer.
  3338.  
  3339.     * mvdir.c (main): Don't deref NULL pointer on last iteration
  3340.     of loop.
  3341.  
  3342.     * fsusage.c (adjust_blocks): New function.
  3343.     (get_fs_usage): Call it.
  3344.  
  3345.     * mvdir.c (main): Don't possibly try to use ".." entry of new dir
  3346.     before creating it.
  3347.  
  3348.     * fsusage.c (get_fs_usage) [STAT_STATFS4]: Use f_bsize member
  3349.     of struct statfs.
  3350.  
  3351. Sat Mar 28 00:36:57 1992  David J. MacKenzie  (djm@wookumz.gnu.ai.mit.edu)
  3352.  
  3353.     * dd.c (copy_simple, copy_with_block, copy_with_unblock,
  3354.     translate_buffer, swab_buffer): New functions, mostly made
  3355.     from code taken from copy.  Incorporate some optimizations due
  3356.     to Stuart Kemp: For each type of conversion, only check
  3357.     whether to do it once per buffer read, instead of once per character.
  3358.     (copy): If conv=block and the input didn't end with a newline,
  3359.     pad the final block with spaces.
  3360.  
  3361. Wed Mar 25 14:35:17 1992  David J. MacKenzie  (djm@wookumz.gnu.ai.mit.edu)
  3362.  
  3363.     * system.h: Don't use BSIZE for calculating ST_BLKSIZE if it
  3364.     isn't defined.
  3365.  
  3366.     * mountlist.c [MOUNTED_FREAD], fsusage.c [STAT_READ]: New code
  3367.     for SVR2, from archive@ideahb.sublink.org (Lele Gaifax).
  3368.  
  3369. Tue Mar 24 14:53:19 1992  David J. MacKenzie  (djm@wookumz.gnu.ai.mit.edu)
  3370.  
  3371.     * mvdir.c: Use getcwd, not getwd.
  3372.  
  3373.     * system.h, xgetcwd.c: Redo how PATH_MAX is figured out, to
  3374.     work on SVR3.
  3375.  
  3376.     * fsusage.c, mountlist.c: New files split from fsinfo.c.
  3377.     Revise conditionals to make the two files independent of each other.
  3378.     * fsusage.h, mountlist.h: New files split from fsinfo.h.
  3379.     * df.c: Use them.
  3380.  
  3381. Mon Mar 23 13:01:07 1992  David J. MacKenzie  (djm@wookumz.gnu.ai.mit.edu)
  3382.  
  3383.     * fsinfo.c (read_filesystem_list): Take another arg, all_fs.
  3384.     [FS_MNTENT]: Ignore type "auto" (from amd) as well as "ignore"
  3385.     (from automounter), if not all_fs.
  3386.     * df.c (main): Pass the new arg.
  3387.  
  3388.     * fsinfo.h: Add function decls.
  3389.  
  3390.     * chown.c, chgrp.c, chmod.c: Remove -L option.  Didn't handle
  3391.     changing symlinks correctly and wasn't very useful.
  3392.  
  3393. Sat Mar 14 17:38:38 1992  David J. MacKenzie  (djm@wookumz.gnu.ai.mit.edu)
  3394.  
  3395.     * dirname.c (dirname): Don't use strdup.
  3396.  
  3397. Fri Mar 13 14:56:15 1992  David J. MacKenzie  (djm@wookumz.gnu.ai.mit.edu)
  3398.  
  3399.     * rm.c (remove_file, remove_dir, clear_directory): If -f was
  3400.     given, don't complain about ENOENT when removing.
  3401.  
  3402. Mon Mar  9 00:09:48 1992  David J. MacKenzie  (djm@nutrimat.gnu.ai.mit.edu)
  3403.  
  3404.     * install.c (main): Allow making multiple dirs with -d.
  3405.     (usage): Document it.
  3406.     * makepath.c (make_path): Clear umask while working and
  3407.     restore it when done.  chmod dirs that should have
  3408.     set[ug]id or sticky bits set, if we're chowning them.
  3409.     Make chown failure nonfatal.  Do chmod after chown, not before.
  3410.  
  3411.     * du.c (count_entry): Set exit_status on nonfatal error.
  3412.     (main): Use it.
  3413.  
  3414. Sun Mar  8 22:07:50 1992  David J. MacKenzie  (djm@nutrimat.gnu.ai.mit.edu)
  3415.  
  3416.     * du.c (du_files): New function, from code in main.
  3417.     Use xgetcwd instead of getcwd or getwd.
  3418.     * system.h: Don't declare getcwd or getwd.
  3419.  
  3420.     * xgetcwd.c: New file.
  3421.  
  3422.     * ls.c (main): Exit with `exit_status' instead of 0.
  3423.     (print_dir, gobble_file, get_link_name): Set exit_status on error.
  3424.  
  3425.     * ls.c (print_long_format): Allow a slop factor for deciding
  3426.     what is in the future.
  3427.  
  3428.     * All programs: Change usage messages and documentation for
  3429.     long options to use -- instead of +.
  3430.  
  3431.     * df.c (main, usage): Add -v option for SysV compat.
  3432.  
  3433. Tue Feb  4 12:45:09 1992  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  3434.  
  3435.     * fileblocks.c [!NINDIR]: Try to fake indirect block info for
  3436.     systems that don't define it.
  3437.  
  3438. Thu Jan 16 01:04:16 1992  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  3439.  
  3440.     * df.c (print_header): Capitalize some header words for
  3441.     POSIX.2a draft 8.
  3442.  
  3443. Sat Jan  4 01:19:25 1992  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  3444.  
  3445.     * posixtm.y: Capitalize token name.
  3446.  
  3447. Tue Dec 24 01:05:44 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  3448.  
  3449.     * system.h, makepath.c, idcache.c, eaccess.c, backupfile.c,
  3450.     install.c, dd.c, chown.c, chgrp.c: Change POSIX ifdefs to
  3451.     HAVE_UNISTD_H.
  3452.  
  3453. Wed Dec 18 16:42:00 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  3454.  
  3455.     * system.h: To get major, minor and makedev, don't check for
  3456.     _POSIX_SOURCE and USG; use MAJOR_IN_MKDEV and MAJOR_IN_SYSMACROS.
  3457.  
  3458. Mon Dec 16 18:16:42 1991  David J. MacKenzie  (djm at wombat.gnu.ai.mit.edu)
  3459.  
  3460.     * dd.c (skip): Fix typos in arg name.
  3461.     (output_char): Fix off by one error in check.
  3462.  
  3463. Sun Dec  8 19:55:06 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  3464.  
  3465.     * system.h: Only define major et al. if not already defined.
  3466.  
  3467. Fri Dec  6 18:26:53 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  3468.  
  3469.     * dd.c (main) [POSIX]: Use sigaction instead of signal, which
  3470.     POSIX doesn't have.
  3471.  
  3472.     * df.c, du.c, ls.c: POSIX_ME_HARDER -> POSIXLY_CORRECT.
  3473.  
  3474. Wed Dec  4 14:30:16 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  3475.  
  3476.     * dd.c: Cleanups, mostly from Stuart Kemp:
  3477.     (output_char): New macro, from code in copy.
  3478.     (write_output): New function, used by output_char, from code
  3479.     in copy.
  3480.     (skip): New function, from code in copy.
  3481.     (copy): Use output_char and skip.
  3482.     Simplify test for quitting before main loop.
  3483.     Zero buffer using bzero for speed.
  3484.  
  3485. Sun Nov 17 19:39:04 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  3486.  
  3487.     * fsinfo.c (get_fs_usage) [FS_MNTENT]: Take blocksize into account.
  3488.     (read_filesystem_list) [FS_MNTENT]: Ignore filesystems of type
  3489.     "ignore" (automounter dummy entries).
  3490.  
  3491.     * install.c (change_attributes): Do chmod even if chown fails.
  3492.  
  3493. Thu Oct 24 23:50:46 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  3494.  
  3495.     * chown.c (change_file_owner), chgrp.c (change_file_group):
  3496.     don't skip symlinks, since the chown system call works on them.
  3497.  
  3498. Fri 18 Oct 1991 23:29:24  Jim Meyering  (meyering at wombat)
  3499.  
  3500.     * configure: fixed test to detect sequent's strange interpretation
  3501.     of utime(file, NULL).
  3502.  
  3503. Fri Oct 18 00:30:42 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  3504.  
  3505.     * eaccess.c: GID_T -> GETGROUPS_T, for clarity.
  3506.  
  3507. Sat Oct 12 12:25:55 1991  David J. MacKenzie  (djm at churchy.gnu.ai.mit.edu)
  3508.  
  3509.     * configure: Define uid_t and gid_t as int if they're not
  3510.     defined in sys/types.h.  That's probably right for old Unixes
  3511.     and avoids trying to find the C preprocessor.
  3512.  
  3513.     * df.c: Don't declare sync, to avoid conflict with Minix (and
  3514.     maybe others) unistd.h.
  3515.     (show_point): Cast -1 to dev_t before comparing, in case dev_t
  3516.     is unsigned.  From Rainer Orth.
  3517.  
  3518.     * chown.c [!POSIX]: Declare getgrgid.
  3519.  
  3520. Fri Sep 13 14:55:41 1991  David J. MacKenzie  (djm at churchy.gnu.ai.mit.edu)
  3521.  
  3522.     * eaccess.c [POSIX]: Always use sysconf to get NGROUPS_MAX.
  3523.  
  3524. Thu Sep  5 23:40:39 1991  David J. MacKenzie  (djm at apple-gunkies)
  3525.  
  3526.     * system.h: Instead of defining getwd in terms of getcwd with
  3527.     PATH_MAX as an arg (which might be -1 on POSIX), define getcwd
  3528.     in terms of getwd.
  3529.     * du.c (main): Call getcwd with path_max as an arg.
  3530.  
  3531.     * install.c (change_attributes): Do chown before chmod, so
  3532.     chown doesn't remove set[ug]id bits.
  3533.  
  3534. Wed Aug 28 20:53:50 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  3535.  
  3536.     * Version 3.1.
  3537.  
  3538. Mon Aug 26 15:44:16 1991  David J. MacKenzie  (djm at pogo.gnu.ai.mit.edu)
  3539.  
  3540.     * du.c (main): If pathconf fails, use 1024 for PATH_MAX.  This
  3541.     happens if "/" is NFS-mounted.
  3542.  
  3543. Sun Aug 25 00:56:11 1991  David J. MacKenzie  (djm at apple-gunkies)
  3544.  
  3545.     * df.c, fsinfo.c, fsinfo.h: New program.
  3546.     * configure: Check for various ways of getting info on mounted
  3547.     filesystems.
  3548.  
  3549. Thu Aug 22 10:53:23 1991  David J. MacKenzie  (djm at apple-gunkies)
  3550.  
  3551.     * src/Makefile.in: Workaround #10006 for C compilers that are
  3552.     too dumb to allow -c and -o together.  Copy the source files.
  3553.     * system.h: Moved from src to lib to avoid having to add yet
  3554.     more -I options to CFLAGS.
  3555.  
  3556.     * du.c, ls.c: If POSIX_ME_HARDER is set in environment, use
  3557.     512-byte blocks by default.
  3558.  
  3559. Wed Aug 21 13:03:14 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  3560.  
  3561.     * Version 3.0.
  3562.  
  3563.     * du.c, ls.c: Make 1K blocks the default size, and -k a no-op.
  3564.     Down with dumb standards!
  3565.  
  3566.     * system.h, backupfile.c, savedir.c [VOID_CLOSEDIR]: Fake a
  3567.     return value for closedir, which returns void on some systems,
  3568.     like Sequents.
  3569.     * configure: Check sys/dir.h for 'void closedir'.
  3570.  
  3571. Tue Aug 20 22:22:47 1991  Jim Meyering  (meyering at nutrimat)
  3572.  
  3573.     * mvdir.c (main):  Clean up loop to stat component
  3574.     directories -- as in makepath and pathchk.
  3575.  
  3576. Tue Aug 20 22:10:47 1991  Jim Meyering  (meyering at nutrimat)
  3577.  
  3578.     * dirname.c (dirname):  Allocate exact amount of space
  3579.     needed for result.
  3580.  
  3581. Tue Aug 20 02:13:40 1991  David J. MacKenzie  (djm at apple-gunkies)
  3582.  
  3583.     * savedir.c (savedir): Try to open directory before allocating
  3584.     buffer.  From Jim Meyering.
  3585.  
  3586. Mon Aug 19 01:14:13 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  3587.  
  3588.     * Many files: indent '#pragma alloca' so non-ANSI compilers
  3589.     don't choke on it.
  3590.  
  3591.     * backupfile.c (max_backup_version): Check closedir return
  3592.     value (though it might not do any good).
  3593.  
  3594. Tue Aug  6 20:50:56 1991  David J. MacKenzie  (djm at wheat-chex)
  3595.  
  3596.     * configure, Makefile.in's: Support +srcdir option, using VPATH.
  3597.     Don't check for bison, just try it and if it fails use yacc.
  3598.     Create config.status.  Fix up clean targets.
  3599.  
  3600.     * posixtm.y (posixtm): New function.
  3601.  
  3602.     Most of the following is from Paul Eggert:
  3603.     * savedir.c (savedir), ls.c (print_dir), rm.c
  3604.     (clear_directory): Check closedir return for errors.
  3605.     * dd.c (main): Check for stdin or stdout being closed.
  3606.     * dd.c (quit), install.c (copy_file): Check for close errors.
  3607.     * mv.c (copy): Was missing a close.
  3608.  
  3609. Sat Aug  3 02:05:51 1991  David J. MacKenzie  (djm at apple-gunkies)
  3610.  
  3611.     * ln.c: Declare link() unconditionally (SCO UNIX needs it).
  3612.  
  3613. Tue Jul 30 00:23:19 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  3614.  
  3615.     * configure: NEED_TZSET has become FTIME_MISSING.
  3616.  
  3617.     * configure: Define uid_t and gid_t if sys/types.h doesn't.
  3618.  
  3619. Sat Jul 27 00:55:16 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  3620.  
  3621.     * configure: Only compile fileblocks.c if st_blocks is missing.
  3622.  
  3623.     * cp.c (copy): Make directories with initial mode of source
  3624.     permissions minus umask, plus 0700.  For POSIX and John Gilmore.
  3625.  
  3626.     * system.h: Include errno.h and, if STDC_HEADERS, stdlib.h.
  3627.     * All programs: Remove includes of those files.
  3628.  
  3629.     * ftruncate.c: New file.
  3630.     * configure: Use it if needed.
  3631.  
  3632. Wed Jul 24 02:09:45 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  3633.  
  3634.     * ls.c (get_name_link), cp.c (copy) [_AIX]: Allocate extra
  3635.     space for the buffer, since st_size is wrong.
  3636.  
  3637.     * system.h: Don't declare alloca for AIX.
  3638.     * makepath.c, posixtm.y, cp.c, du.c, ln.c, ls.c, mv.c:
  3639.     Declare alloca first (AIX needs it).
  3640.  
  3641.     * cp.c, dd.c, touch.c: Use SEEK_ instead of L_.
  3642.     * system.h: Define SEEK_ if not defined.
  3643.  
  3644. Tue Jul 23 15:02:20 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  3645.  
  3646.     * eaccess.c: GID_T is int if ultrix as well as if sun.
  3647.  
  3648. Mon Jul 22 11:39:31 1991  David J. MacKenzie  (djm at bleen)
  3649.  
  3650.     * install.c: Use uid_t and gid_t.
  3651.  
  3652.     * eaccess.c: Support POSIX method of getting multiple groups.
  3653.  
  3654. Sat Jul 20 14:24:40 1991  David J. MacKenzie  (djm at bleen)
  3655.  
  3656.     * Move cat cmp cut expand head paste split tac tail unexpand
  3657.     to textutils.
  3658.  
  3659.     * system.h [MKFIFO_MISSING]: Define mkfifo macro.
  3660.     * cp.c, mkfifo.c: Don't define it.
  3661.  
  3662.     * mknod.c, gmknod.1: New files.
  3663.  
  3664. Fri Jul 19 13:43:01 1991  David J. MacKenzie  (djm at apple-gunkies)
  3665.  
  3666.     * version.c: New file.
  3667.     * All C programs: Link with it, to get version number in the
  3668.     binary where at least `strings -' and GNU grep can find it.
  3669.  
  3670. Mon Jul 15 13:46:53 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  3671.  
  3672.     * configure: Also look in sys/signal.h for signal decl.
  3673.  
  3674. Sun Jul 14 22:43:57 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  3675.  
  3676.     * Rename touchtm.y back to posixtm.y, as the date command will
  3677.     use it too.
  3678.  
  3679. Mon Jul  8 22:56:36 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
  3680.  
  3681.     * Replace lib/Makefile with lib/Makefile.in.
  3682.     * configure: For some library functions that might be missing,
  3683.     conditionally add the .o files to lib/Makefile instead of
  3684.     defining func_MISSING.
  3685.     * lib/mkdir.c: Renamed from lib/mkrmdir.c.
  3686.  
  3687. Sat Jul  6 02:19:09 1991  David J. MacKenzie  (djm at geech.gnu.ai.mit.edu)
  3688.  
  3689.     * xstrdup.c [STDC_HEADERS]: Include string.h.
  3690.  
  3691.     * stripslash.h: Include string header file.
  3692.  
  3693.     * configure: Add to DEFS if Minix.
  3694.  
  3695.     * system.h [_POSIX_SOURCE]: Make ST_BLKSIZE 1024 instead of
  3696.     512, for better performance.
  3697.  
  3698.     * system.h, configure: If sys/mkdev.h exists, use it instead
  3699.     of sys/sysmacros.h.
  3700.  
  3701.     * configure: echo messages to stdout, not stderr.
  3702.     Use test programs to see if alloca needs -lPW and if chars are
  3703.     unsigned.
  3704.  
  3705. Tue Jul  2 03:16:32 1991  David J. MacKenzie  (djm at geech.gnu.ai.mit.edu)
  3706.  
  3707.     * chown.c, chgrp.c [!POSIX]: Declare pwd.h and grp.h functions.
  3708.  
  3709. Sat Jun 29 16:46:12 1991  David J. MacKenzie  (djm at geech.gnu.ai.mit.edu)
  3710.  
  3711.     * cp.h: Don't declare `open', to avoid conflict with varargs
  3712.     prototypes.
  3713.  
  3714.     * chown.c, chgrp.c: Include sys/types.h before, not after,
  3715.     pwd.h and grp.h, to get uid_t and gid_t if necessary.
  3716.  
  3717. Fri Jun 28 01:12:45 1991  David J. MacKenzie  (djm at geech.gnu.ai.mit.edu)
  3718.  
  3719.     * ls.c: Use time_t instead of long, where appropriate.
  3720.  
  3721. Thu Jun 27 16:31:45 1991  David J. MacKenzie  (djm at geech.gnu.ai.mit.edu)
  3722.  
  3723.     * touchtm.y: Renamed from posixtime.y for SysV systems with Bison.
  3724.  
  3725.     * configure: No longer need to pass bison the -y option.
  3726.     Now lib/Makefile should allow a parallel make with bison.
  3727.  
  3728.     * cp.c (copy_reg), cat.c (main),
  3729.     touch.c (touch, utime_now), mv.c (copy): Check close return
  3730.     value for delayed error report due to NFS.
  3731.  
  3732. Thu Jun 20 01:33:06 1991  David J. MacKenzie  (djm at geech.gnu.ai.mit.edu)
  3733.  
  3734.     * configure: Include $DEFS when compiling test programs.
  3735.  
  3736.     * configure: Use test programs instead of grep to check for
  3737.     USG, POSIX, and ANSI C headers, in case symbols are defined in
  3738.     header files included by the standard ones.  Check for BSD
  3739.     memory functions (bcopy et al.) as well as string functions.
  3740.     Add notice to top of generated Makefile saying that it's
  3741.     automatically generated.
  3742.  
  3743. Thu Jun 13 00:50:18 1991  David J. MacKenzie  (djm at geech.gnu.ai.mit.edu)
  3744.  
  3745.     * Version 2.1.
  3746.  
  3747.     * configure: If rename is missing, define MVDIR.
  3748.     Use , instead of / as sed substitution separator so variables'
  3749.     values can contain slashes.
  3750.  
  3751.     * du.c (main): Use alloca to allocate `wd' instead of making
  3752.     it an auto array, since PATH_MAX might be a call to pathconf.
  3753.  
  3754. Wed Jun 12 19:56:22 1991  David J. MacKenzie  (djm at geech.gnu.ai.mit.edu)
  3755.  
  3756.     * cp-aux.c (usage), install.c (usage), ln.c (usage), mv.c
  3757.     (usage): Combine the option lists for the multiple usage forms.
  3758.  
  3759. Tue Jun 11 00:12:15 1991  David J. MacKenzie  (djm at geech.gnu.ai.mit.edu)
  3760.  
  3761.     * idcache.c: pwd.h and grp.h might need sys/types.h.
  3762.  
  3763.     * configure: Create Makefile from Makefile.in instead of
  3764.     makefile from makefile.skel, to more closely follow the new
  3765.     GNU coding standards.
  3766.  
  3767.     * ls.c (file_interesting): Use POSIX.2 fnmatch instead of glob_match.
  3768.  
  3769.     * configure: If $RANDOM is implemented (ksh, bash or zsh), use
  3770.     the `type' builtin to determine if gcc, bison, ranlib are
  3771.     available.  ksh writes "fubar: command not found" to stderr,
  3772.     foiling the test -n "`command 2>&1`" method.
  3773.     Remove makefile on signal.
  3774.  
  3775.     * system.h: Include sys/param.h if not _POSIX_SOURCE instead
  3776.     of if not POSIX, to get DEV_BSIZE.
  3777.  
  3778.     * makepath.c, posixtime.y, system.h: Add _AIX case to alloca decl.
  3779.  
  3780. Sun Jun  9 01:26:27 1991  David J. MacKenzie  (djm at geech.gnu.ai.mit.edu)
  3781.  
  3782.     * Version 2.0.
  3783.  
  3784.     * basename.c, dirname.c: Use str[r]chr and string.h if
  3785.     STDC_HEADERS as well as if USG.
  3786.  
  3787.     * touch.c (utime_now): Created from code in touch ().
  3788.  
  3789. Sat Jun  8 11:02:32 1991  David J. MacKenzie  (djm at geech.gnu.ai.mit.edu)
  3790.  
  3791.     * backupfile.c: Use POSIX instead of _POSIX_SOURCE to
  3792.     determine whether to check whether readdir returned a valid
  3793.     entry.
  3794.  
  3795. Fri Jun  7 21:44:51 1991  David J. MacKenzie  (djm at geech.gnu.ai.mit.edu)
  3796.  
  3797.     * fileblocks.c (st_blocks), system.h (ST_NBLOCKS): Always
  3798.     return number of 512 byte blocks, not DEV_BSIZE blocks.
  3799.     (convert_blocks): Always expect 512-byte blocks.
  3800.  
  3801. Thu Jun  6 12:54:26 1991  David J. MacKenzie  (djm at geech.gnu.ai.mit.edu)
  3802.  
  3803.     * system.h [POSIX]: If PATH_MAX not defined, use pathconf.
  3804.     Remove NAME_MAX stuff; not used.
  3805.  
  3806.     * system.h: Make #include <strings.h> depend on not (USG or
  3807.     STDC_HEADERS) instead of not (USG or POSIX).
  3808.  
  3809.     * configure: New shell script to aid compilation.
  3810.  
  3811. Mon Jun  3 16:42:41 1991  David J. MacKenzie  (djm at wheat-chex)
  3812.  
  3813.     * cp.h: Remove some decls of functions returning int that
  3814.     conflict with prototypes on HPUX.
  3815.  
  3816.     * cp.c (make_path, re_protect): New functions from Jim
  3817.     Meyering.  Changes to other functions as well, to add +path,
  3818.     +link, +symbolic-link options.
  3819.  
  3820. Sun Jun  2 15:45:24 1991  David J. MacKenzie  (djm at wheat-chex)
  3821.  
  3822.     * most files: use GPL version 2.
  3823.  
  3824. Sat Jun  1 20:17:35 1991  David J. MacKenzie  (djm at wheat-chex)
  3825.  
  3826.     * rm.c, backupfile.c: If _POSIX_SOURCE, don't refer to d_ino.
  3827.  
  3828. Sun May 19 18:42:09 1991  David J. MacKenzie  (djm at churchy.gnu.ai.mit.edu)
  3829.  
  3830.     * touch.c: Renamed getdate to get_date to avoid SVR4 conflict.
  3831.  
  3832. Thu May 16 23:12:01 1991  David J. MacKenzie  (djm at albert.gnu.ai.mit.edu)
  3833.  
  3834.     * cp.c, mv.c, ln.c: Use alloca and strcpy directly instead of
  3835.     in a macro for generating backup filename.  The latter
  3836.     sometimes coredumps for some reason.
  3837.  
  3838. Sat Apr 20 00:03:09 1991  David J. MacKenzie  (djm at geech.gnu.ai.mit.edu)
  3839.  
  3840.     * dd.c: Add conv=notrunc and truncate output file by default,
  3841.     for POSIX.
  3842.  
  3843.     * rm.c (rm): Refuse to remove path/. and path/.., as well as `.'
  3844.     and `..', for POSIX.
  3845.  
  3846.     * chown.c: Allow `:' as well as `.' to separate group from
  3847.     user, for POSIX.2 draft 11.
  3848.  
  3849.     * Many programs: Don't bother to get the long-option index
  3850.     value from getopt_long, since we ignore it.
  3851.  
  3852.     * Many programs: Separate long-option option names from their
  3853.     args with `=' instead of ` ' in usage messages.
  3854.  
  3855.     * touch.c (touch): Don't refuse to touch non-regular files.
  3856.  
  3857. Wed Apr 10 12:19:30 1991  David J. MacKenzie  (djm at churchy.gnu.ai.mit.edu)
  3858.  
  3859.     * cp.c, cp-aux.c: Add -a +archive option, an easier to
  3860.     remember synonym for -dpR.
  3861.  
  3862. Fri Mar 15 16:16:54 1991  David J. MacKenzie  (djm at geech.ai.mit.edu)
  3863.  
  3864.     * mv.c (copy): Try to preserve file ownership in
  3865.     cross-filesystem copies.
  3866.  
  3867.     * backupfile.c, rm.c: Go back to using d_ino instead of
  3868.     d_fileno.  POSIX.1 specifies neither, and d_ino is more
  3869.     common, perhaps ubiquitous.
  3870.  
  3871.     * chown.c (describe_change): Don't print the group name if it
  3872.     didn't change (thus is a null pointer).
  3873.     (main): Initialize group name to null.
  3874.  
  3875. Mon Feb 25 11:44:14 1991  David J. MacKenzie  (djm at geech.ai.mit.edu)
  3876.  
  3877.     * dd.c (copy): Only seek if not seeking to start of file, so
  3878.     "dd >> foo" works with Minix shell that doesn't open foo in
  3879.     append mode.
  3880.  
  3881. Thu Feb 21 11:59:39 1991  David J. MacKenzie  (djm at geech.ai.mit.edu)
  3882.  
  3883.     * ln.c (do_link), mv.c (do_move), cp.c (copy): Store backup
  3884.     filename using alloca so we don't have to free it every place
  3885.     we return.  From Jim Meyering.
  3886.  
  3887. Thu Feb 14 00:41:43 1991  David J. MacKenzie  (djm at geech.ai.mit.edu)
  3888.  
  3889.     * cp.c (copy_reg): Only make holes when copying a regular file
  3890.     onto a regular file.
  3891.  
  3892. Fri Jan 18 06:31:59 1991  David J. MacKenzie  (djm at albert.ai.mit.edu)
  3893.  
  3894.     * ls.c: Move defn. of S_IEXEC to after header files are included.
  3895.     * cp.h: Always declare stat and lstat.
  3896.  
  3897. Thu Jan 10 02:16:55 1991  David J. MacKenzie  (djm at albert.ai.mit.edu)
  3898.  
  3899.     * cp.h: Only declare some system calls if not POSIX.
  3900.  
  3901.     * eaccess.c, idcache.c, dd.c, install.c, ln.c, system.h:
  3902.     Change _POSIX_SOURCE to POSIX.
  3903.  
  3904.     * fileblocks.c, system.h: Change STBLOCKS_MISSING to
  3905.     ST_BLOCKS_MISSING (was already that way in cp.c).
  3906.  
  3907. Fri Dec 28 18:40:34 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  3908.  
  3909.     * chmod.c, chown.c, chgrp.c, du.c: Rename -d option to -L for
  3910.     similarity to ls and cpio.
  3911.  
  3912. Thu Dec 27 00:06:45 1990  David J. MacKenzie  (djm at egypt)
  3913.  
  3914.     * rm.c (clear_directory): Keep looking for files to remove
  3915.     until we don't find any, so that any .nfs* files created by
  3916.     removing other files are also removed, eventually.
  3917.  
  3918.     * install.c (main): Strip trailing slashes on all args.
  3919.  
  3920.     * mv.c (copy): Open target file with mode 0600, not 0777.
  3921.     [FCHMOD_MISSING]: Perform chmod after closing files, not
  3922.     before, for MS-DOS.
  3923.  
  3924.     * cp.c (do_copy): Don't append `..' to target dir name.
  3925.  
  3926.     * du.c (main, count_entry, usage): Add -D +dereference-args
  3927.     and -d +dereference options.
  3928.  
  3929. Wed Dec 26 03:39:18 1990  David J. MacKenzie  (djm at egypt)
  3930.  
  3931.     * dirname.c, xstrdup.c: Get decls from standard files, if available.
  3932.  
  3933. Thu Dec 20 23:10:22 1990  David J. MacKenzie  (djm at egypt)
  3934.  
  3935.     * makepath.c: New file, adapted from code in mkdir.c,
  3936.     install.c, and cpio util.c by Jim Meyering.
  3937.     * mkdir.c, install.c: Use make_path.
  3938.  
  3939. Sun Dec 16 00:56:54 1990  David J. MacKenzie  (djm at egypt)
  3940.  
  3941.     * chown.c, chgrp.c: New files.
  3942.  
  3943. Sat Dec 15 20:42:32 1990  David J. MacKenzie  (djm at egypt)
  3944.  
  3945.     * cp.h: Declare POSIX functions always -- _POSIX_SOURCE
  3946.     doesn't imply STDC declarations.
  3947.  
  3948.     * system.h: Define S_ISTYPE macros not defined by sys/stat.h.
  3949.  
  3950.     * Many files: Use S_ISTYPE macros.
  3951.  
  3952.     * backupfile.c, rm.c: Use name d_fileno for member of struct
  3953.     dirent instead of d_ino, for POSIX.
  3954.  
  3955. Wed Dec 12 23:38:22 1990  David J. MacKenzie  (djm at egypt)
  3956.  
  3957.     * ls.c: Declare time() as time_t instead of long, to prevent
  3958.     conflict with standard header files.
  3959.  
  3960.     * cp.c (copy_reg): Instead of using NO_SPARSE_FILES, use
  3961.     st_blocks to determine whether the original file contains any
  3962.     sparse blocks, and only create them if so.  On systems without
  3963.     st_blocks, to be safe, never create sparse blocks.
  3964.  
  3965. Thu Nov  8 12:16:27 1990  David J. MacKenzie  (djm at apple-gunkies)
  3966.  
  3967.     * idcache.c: If _POSIX_SOURCE not defined, declare getpw and
  3968.     getgr functions (not an optimal solution, but I hate to add
  3969.     yet another configuration macro).
  3970.  
  3971.     * Makefile: Define AR and RANLIB and pass to child makes.
  3972.     lib/Makefile: Use them.
  3973.  
  3974. Tue Nov  6 23:18:06 1990  David J. MacKenzie  (djm at mole.ai.mit.edu)
  3975.  
  3976.     * idcache.c: New file from code in ls.c.
  3977.  
  3978. Fri Nov  2 14:34:40 1990  David J. MacKenzie  (djm at apple-gunkies)
  3979.  
  3980.     * Move files into src and lib directories, split out library
  3981.     functions into separate files in lib, and rewrite Makefiles.
  3982.  
  3983. Mon Oct 29 01:20:46 1990  David J. MacKenzie  (djm at apple-gunkies)
  3984.  
  3985.     * mv.c (do_move), rm.c (remove_file, remove_dir): If stdin is
  3986.     a tty and file is unwritable, prompt before overwriting.
  3987.  
  3988.     * cp.c (copy_reg): Only make sparse files if
  3989.     NO_SPARSE_FILES is undefined, to accommodate dumb kernels.
  3990.  
  3991.     * du.c (count_entry): Remove misinformed HPUX kludge that
  3992.     doesn't really fix the problem.
  3993.  
  3994.     * rm.c (rm): Check for textual equality with '.' and '..', not
  3995.     dev/inode equality.
  3996.  
  3997. Sat Oct 27 23:38:55 1990  David J. MacKenzie  (djm at apple-gunkies)
  3998.  
  3999.     * rm.c (check_stack): If not interactive, don't prompt when
  4000.     corruption is found, just quit.
  4001.     (remove_file, remove_dir): Delete leading spaces in verbose
  4002.     output.
  4003.  
  4004.     * cp.c (copy), rm.c (remove_dir): If we think the dest. file
  4005.     is unwritable, warn the user in the interactive prompt instead
  4006.     of automatically skipping the file.  Because of race
  4007.     conditions and other protection mechanisms we might not know
  4008.     about, and POSIX.
  4009.  
  4010. Mon Oct  8 18:51:25 1990  David J. MacKenzie  (djm at apple-gunkies)
  4011.  
  4012.     * du.c (main, usage, count_entry): Add +separate-dirs -S option.
  4013.  
  4014.     * dd.c (main): Don't trap SIGINT if it was being ignored.
  4015.  
  4016. Tue Sep 25 16:40:43 1990  David J. MacKenzie  (djm at apple-gunkies)
  4017.  
  4018.     * install.c (copy_file, install_file_in_file): Change
  4019.     attributes after stripping, to guard against strip programs
  4020.     that clear setuid bits, etc.
  4021.  
  4022. Fri Sep 21 22:31:43 1990  David J. MacKenzie  (djm at apple-gunkies)
  4023.  
  4024.     * cp.c (copy_reg): Put back ftruncate way of making holes
  4025.     because the other way can't make a hole at the end of a file.
  4026.  
  4027. Tue Sep 18 03:47:45 1990  David J. MacKenzie  (djm at apple-gunkies)
  4028.  
  4029.     * install.c (change_attributes): Don't ignore EPERM for chown,
  4030.     since the default uid is now the current uid.
  4031.  
  4032. Sun Sep  9 16:54:19 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  4033.  
  4034.     * Version 1.4.
  4035.  
  4036.     * cp.h: Declare free returning void, not int, so it
  4037.     doesn't bomb on Xenix.
  4038.  
  4039. Fri Sep  7 04:35:35 1990  David J. MacKenzie  (djm at apple-gunkies)
  4040.  
  4041.     * system.h, backupfile.c, savedir.c [DIRENT]: if direct is
  4042.     defined (as on Ultrix 4.0), undefine it before redefining it.
  4043.  
  4044. Tue Sep  4 03:10:24 1990  David J. MacKenzie  (djm at apple-gunkies)
  4045.  
  4046.     * dd.c (apply_translations, translate_charset): Code moved
  4047.     from parse_conversion.
  4048.     (apply_translations): Convert from EBCDIC to ASCII before
  4049.     converting case.
  4050.  
  4051.     * mvdir.c (fullpath): Return a value.
  4052.  
  4053.     * dd.c (copy): Increment count of truncated records once
  4054.     per record, not once per character that overflows.
  4055.  
  4056. Mon Sep  3 22:23:57 1990  David J. MacKenzie  (djm at coke)
  4057.  
  4058.     * dd.c (swab_array): Function removed.
  4059.     (copy): Rewrite conv=swab to work when odd number of bytes
  4060.     are read.
  4061.     (scanargs): Die if invalid numeric value is given.
  4062.     (parse_integer): Return -1 if invalid arg.
  4063.     (bit_count): Faster version from Jim Meyering.
  4064.  
  4065.     * cp.c, mkfifo.c [MKFIFO_MISSING]: Define mkfifo.
  4066.  
  4067. Thu Aug 30 00:17:02 1990  David J. MacKenzie  (djm at apple-gunkies)
  4068.  
  4069.     * mvdir.c (main): Make sure `from' is not a parent of any part
  4070.     of `to', not just the explicitly given part.
  4071.     (fullpath): New function.
  4072.  
  4073. Wed Aug 29 19:50:05 1990  David J. MacKenzie  (djm at apple-gunkies)
  4074.  
  4075.     * mvdir.c: Renamed from mv_dir.c, for consistency with mkdir and rmdir.
  4076.     * dirlib.c: Caller changed.
  4077.  
  4078. Tue Aug 28 18:05:24 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  4079.  
  4080.     * touch.c (main): Don't interpret first non-option arg as a
  4081.     time if `--' is given (POSIX-required kludge).
  4082.  
  4083.     * touch.c: Add long-named options.
  4084.  
  4085.     * Many files: Include <getopt.h> instead of "getopt.h" since
  4086.     getopt.h will be in the GNU /usr/include.
  4087.  
  4088.     * install.c: Declare some functions.
  4089.  
  4090.     * touch.c, getdate.y, posixtime.y, mktime.c: New files, from bin-src.
  4091.  
  4092.     * posixtime.y: Move year from before time to after it (but
  4093.     before the seconds), for 1003.2 draft 10.
  4094.  
  4095. Mon Aug 27 03:25:36 1990  David J. MacKenzie  (djm at apple-gunkies)
  4096.  
  4097.     * touch.c (main): If no time is given and first arg is a valid
  4098.     timespec, use it as one.
  4099.  
  4100. Sat Aug 25 01:36:16 1990  David J. MacKenzie  (djm at apple-gunkies)
  4101.  
  4102.     * posixtime.y: Enclose YYABORT in braces in case some yacc's
  4103.     need it.
  4104.  
  4105.     * touch.c: Remove -i option.  Change some error messages.
  4106.     (readname): Function removed.
  4107.  
  4108. Thu Aug 23 12:56:33 1990  David J. MacKenzie  (djm at apple-gunkies)
  4109.  
  4110.     * cp.c (copy): Only restore dir mode if it was changed.
  4111.  
  4112. Wed Aug 22 01:45:54 1990  David J. MacKenzie  (djm at apple-gunkies)
  4113.  
  4114.     * cp.c (copy): Don't only backup files when -f is given.
  4115.  
  4116.     * ls.c: Add -X +sort=extension option.  Rename
  4117.     +kilobyte-file-size to +kilobytes.
  4118.  
  4119.     * du.c: Rename -f option to -x, for POSIX.  Rename
  4120.     +kilobyte-file-size to +kilobytes.  Add -b, +bytes option for
  4121.     POSIX.
  4122.  
  4123.     * cp-aux.c (usage): Change -o to -x.
  4124.     (stpcpy): Renamed from str_cpy.  Change callers in cp.c.
  4125.  
  4126.     * cp.c: New variable, `flag_copy_as_regular'.
  4127.     (main): For -R, unset `flag_copy_as_regular'.
  4128.     Rename -o to -x for consistency with du.
  4129.     (copy): Only unlink destination files when -f is given.
  4130.     Only prompt when -i given and copying as a regular file.
  4131.     Move check for previous link after other checks, reducing
  4132.     duplicate code.
  4133.     Create directories with mode 0700 initially, for POSIX.
  4134.  
  4135. Mon Aug 20 03:29:08 1990  David J. MacKenzie  (djm at apple-gunkies)
  4136.  
  4137.     * dd.c (copy): Swap input bytes instead of output bytes.
  4138.     (swab_array): New function.
  4139.  
  4140.     * dd.c (copy): If sync and noerror, zero the buffer before the
  4141.     read instead of after so that any data read before an error
  4142.     occurred are preserved.
  4143.     On read error, print stats and seek past the bad block if noerror.
  4144.     noerror doesn't affect write errors, for POSIX.
  4145.     (scanargs): Use two buffers if no buffer sizes given.
  4146.     Do not block or unblock if cbs not given.
  4147.     (print_stats): New function.
  4148.     (quit): Call it.
  4149.  
  4150. Mon Aug 13 23:30:03 1990  David J. MacKenzie  (djm at apple-gunkies)
  4151.  
  4152.     * cp.c (copy): If dest. exists and is unwritable, skip the file.
  4153.  
  4154.     * rm.c, mv.c, cp.c, ln.c (main): Respect the last -f or -i given,
  4155.     for POSIX.
  4156.  
  4157.     * rm.c (remove_file): Only prompt if -i is given.
  4158.     (main, usage): Remove -o +override-mode option, obsolete if
  4159.     POSIX accepts our objection about prompting.
  4160.  
  4161.     * mv.c (do_move): Only prompt if -i is given.
  4162.  
  4163.     * ln.c (do_link): If dest. file exists and -i and -f not
  4164.     given, skip the file.
  4165.  
  4166. Tue Aug  7 12:51:18 1990  David J. MacKenzie  (djm at apple-gunkies)
  4167.  
  4168.     * dd.c (main): If seek= given, don't truncate output file.
  4169.     (copy): Use `read' to skip output blocks if not regular file.
  4170.     Sync with NUL instead of SPC.
  4171.  
  4172. Mon Aug  6 14:43:30 1990  David J. MacKenzie  (djm at pogo.ai.mit.edu)
  4173.  
  4174.     * rm.c: Rename `ignore_errors' to `ignore_missing_files', and
  4175.     have it only suppress messages about nonexisting files.
  4176.     (main): Get dev and ino of `.' and `..'.
  4177.     (rm): If file is the same as `.' or `..', return with error.
  4178.     (remove_file): Remove the file rather than skipping it if
  4179.     unwritable, no -i, and stdin not tty.
  4180.     (remove_dir): Return an error if directory is nonwritable,
  4181.     rather than nonreadable or nonsearchable, for POSIX.2 draft 10.
  4182.  
  4183.     * chmod.c (main): Use fixed error checking to make sure that
  4184.     options aren't mixed together in the same args as mode specifiers.
  4185.  
  4186. Sun Aug  5 11:51:12 1990  David J. MacKenzie  (djm at pogo.ai.mit.edu)
  4187.  
  4188.     * chmod.c (main): Use umask for '-' op.
  4189.  
  4190. Sat Aug  4 10:11:30 1990  David J. MacKenzie  (djm at pogo.ai.mit.edu)
  4191.  
  4192.     * mkfifo.c: Remove -p +path option, no longer specified by POSIX.
  4193.  
  4194. Fri Aug  3 13:38:28 1990  David J. MacKenzie  (djm at pogo.ai.mit.edu)
  4195.  
  4196.     * mkdir.c, mkfifo.c, create.c (main): Don't tell mode_compile to
  4197.     respect the umask for certain operations, since the umask is 0 anyway.
  4198.  
  4199.     * install.c (get_ids): Use getuid and getgid to get defaults,
  4200.     instead of -1.
  4201.  
  4202. Fri Jul 27 14:32:40 1990  David J. MacKenzie  (djm at apple-gunkies)
  4203.  
  4204.     * backupfile.c (dirname): Always replace frontmost slash with a null.
  4205.  
  4206. Thu Jul 26 00:20:35 1990  David J. MacKenzie  (djm at apple-gunkies)
  4207.  
  4208.     * cp.h: Declare umask as unsigned short.
  4209.  
  4210.     * eaccess.c: Make uid and gid unsigned short, and group array unsigned.
  4211.  
  4212. Wed Jul 25 18:38:57 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  4213.  
  4214.     * rm.c (remove_file, remove_dir): Print verbose message right
  4215.     before actually trying to remove the file, after the prompting.
  4216.  
  4217.     * ls.c (getuser, getgroup): Make uid and gid unsigned short, not int.
  4218.  
  4219. Tue Jul 24 03:39:42 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  4220.  
  4221.     * cp.c (copy), ln.c (do_link), mv.c (do_move): For +verbose,
  4222.     print the file names just before actually attempting the
  4223.     copy/link/move, to produce a list of the files that they
  4224.     actually try to copy/link/move, omitting skipped files.
  4225.     Remove leading spaces from +verbose output.
  4226.  
  4227. Mon Jul 23 16:57:44 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  4228.  
  4229.     * cp.c (copy): Make +update operate silently, like +one-file-system.
  4230.  
  4231.     * ln.c: Add -F as synonym for -d, for SunOS compatibility.
  4232.  
  4233. Sun Jul 15 23:23:28 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  4234.  
  4235.     * cp.c (copy): Go back to using xstat on dest.
  4236.  
  4237. Wed Jul 11 12:10:33 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  4238.  
  4239.     * cp.c (copy): Make directories with desired mode plus u+wx so
  4240.     if the copy is interrupted, the dir is closer to the desired mode.
  4241.     Don't backup directories.
  4242.  
  4243. Sun Jul  8 00:39:31 1990  David J. MacKenzie  (djm at apple-gunkies)
  4244.  
  4245.     * rm.c (main, usage): Add new option -d, +directory.
  4246.     (rm): If -d given, use remove_file instead of remove_dir for
  4247.     directories.
  4248.     (remove_file): If directory, print "remove directory `foo'?"
  4249.     for interactive instead of "remove `foo'?".
  4250.  
  4251.     * ln.c (main): If -s given, print warning message if symlinks
  4252.     are not available.
  4253.     * mkfifo.c (main): If fifo's are not available, print message
  4254.     and exit.
  4255.  
  4256. Fri Jul  6 02:02:49 1990  David J. MacKenzie  (djm at apple-gunkies)
  4257.  
  4258.     * install.c (main): Use the current user and group ID for the
  4259.     default owner and group.
  4260.  
  4261.     * mv.c (main): New option -u, +update.
  4262.     (do_move): Don't move nondirectories if -u and there is an existing
  4263.     destination that has the same or newer mtime.
  4264.     (usage): Document -u, +update.
  4265.  
  4266.     * cp.c (main): New option -u, +update.
  4267.     (copy): Don't copy nondirectories if -u and there is an existing
  4268.     destination that has the same or newer mtime.
  4269.     * cp-aux.c (usage): Document -u ,+update.
  4270.  
  4271. Thu Jul  5 10:04:12 1990  David J. MacKenzie  (djm at apple-gunkies)
  4272.  
  4273.     * ln.c (do_link): Don't check whether OLD exists before trying
  4274.     to make link.
  4275.  
  4276. Tue Jul  3 01:51:55 1990  David J. MacKenzie  (djm at apple-gunkies)
  4277.  
  4278.     * ls.c: Allow "+time=atime" and "+time=ctime" for C hackers.
  4279.  
  4280.     * chmod.c (main): Don't check whether multiple mode arguments
  4281.     are given, because optind has a different value depending on
  4282.     whether or not the option is the last character in the
  4283.     ARGV-element.
  4284.  
  4285. Sat Jun 30 12:32:51 1990  David J. MacKenzie  (djm at apple-gunkies)
  4286.  
  4287.     * cp.c (copy): Use lstat on dest. file, not *xstat.
  4288.  
  4289. Mon Jun 25 18:07:20 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  4290.  
  4291.     * ls.c (print_long_format): Truncate user and group names to 8
  4292.     chars to preserve column alignment.
  4293.     (length_of_file_name_and_frills): Don't assume type indicator
  4294.     will be printed for unknown file types that some os's have.
  4295.  
  4296.     * install.c: Declare getgrnam for systems where grp.h doesn't.
  4297.  
  4298. Sat Jun 23 00:06:35 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  4299.  
  4300.     * Version 1.3.
  4301.  
  4302.     * du.c (count_entry) [HPUX_NFS_BUG]: If the size of the file
  4303.     according to the number of blocks reported is twice or more than
  4304.     the size of the file according to the number of bytes
  4305.     reported, halve the number of blocks.
  4306.  
  4307. Fri Jun 22 00:38:20 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  4308.  
  4309.     * cp.c (copy_dir): Initialize 'ret' to 0.
  4310.  
  4311.     * cp.c (main), ln.c (main), mv.c (main), rm.c (main):
  4312.     Make -i override -f and -o, to be conservative about
  4313.     removing peoples' files.
  4314.  
  4315.     * mkdir.c (make_path), mkfifo.c (make_path): Don't try to stat
  4316.     "" or "/".
  4317.  
  4318.     * rm.c, rmdir.c, mkdir.c, mkfifo.c: Move code to remove
  4319.     slashes at the end of an arg from main to
  4320.     strip_trailing_slashes.
  4321.  
  4322.     * install.c (strip): Print error message if the `strip'
  4323.     program can't be run.
  4324.  
  4325.     * system.h (convert_blocks): Macro moved from du.c and ls.c.
  4326.     Take a second parameter indicating whether to convert to
  4327.     kilobytes or 512 byte blocks.
  4328.     * ls.c, du.c: Pass second parameter to convert_blocks.
  4329.  
  4330. Thu Jun 21 01:19:28 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  4331.  
  4332.     * ls.c (print_long_format): Use mode_string instead of filemodestring.
  4333.  
  4334.     * ls.c (print_long_format): Compare times as longs, not ints.
  4335.     (longdiff): Macro to compare two longs efficiently if sizeof
  4336.     int == sizeof long and less efficiently but correctly if they
  4337.     are different sizes.
  4338.     (compare_ctime, etc.): Use longdiff.
  4339.  
  4340.     * ls.c (decode_switches): Make -k not imply -s, to allow the
  4341.     summary directory size printed by -l to be in 1k blocks
  4342.     without having the size of each file printed as well.
  4343.     (convert_blocks): Provide for systems with a blocksize that is
  4344.     other than 512 or 1024 bytes.
  4345.  
  4346.     * du.c (main): Exit with status 0 normally.
  4347.     (convert_blocks): Provide for systems with a blocksize that is
  4348.     other than 512 or 1024 bytes.
  4349.  
  4350. Wed Jun 20 01:46:09 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  4351.  
  4352.     * ln.c (do_link): Take out code to give an error if source and
  4353.     dest are the same file.  The dubious usefulness of the special
  4354.     case to prevent 'ln x x' from removing 'x' (ln -i can be used
  4355.     instead) is not worth preventing 'ln x y' from failing the
  4356.     second time in a row, and appears to contradict POSIX anyway.
  4357.  
  4358. Mon Jun 18 02:48:17 1990  David J. MacKenzie  (djm at apple-gunkies)
  4359.  
  4360.     * ls.c (print_file_name_and_frills):
  4361.     (length_of_file_name_and_frills, print_long_format):
  4362.     Allow 6 digits for i-number, not 5.
  4363.  
  4364. Sun Jun 17 00:09:23 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  4365.  
  4366.     * install.c (install_dir): Don't check whether "" or the root
  4367.     directory exists (the former fails on some systems).
  4368.  
  4369.     * system.h: Make inclusion of sys/file.h conditional on USG
  4370.     and _POSIX_SOURCE, not DIRENT.
  4371.  
  4372.     * chmod.c (change_dir_mode): Use xrealloc instead of free and
  4373.     xmalloc in case malloc already left extra room.
  4374.     (xrealloc): New function.
  4375.  
  4376.     * rm.c (clear_directory): Prevent buffer overruns.
  4377.     More efficient string handling.  Don't skip rest of directory
  4378.     if continuing after finding circular inode.
  4379.     (xrealloc): New function.
  4380.  
  4381. Sat Jun 16 01:45:42 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  4382.  
  4383.     * argmatch.c (invalid_arg): Change order in which the items
  4384.     are printed.
  4385.  
  4386.     * ls.c: Add +tabsize (-T) option.
  4387.  
  4388. Fri Jun 15 23:40:55 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  4389.  
  4390.     * dd.c (scanargs): For ibs and obs, set C_HARDWAY.
  4391.     (copy): Use different buffers only if C_HARDWAY, not if
  4392.     blocksizes are the same, to ensure constant output block sizes.
  4393.  
  4394. Wed Jun 13 23:56:20 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  4395.  
  4396.     * savedir.c: New file from code in chmod.c, modified to
  4397.     prevent buffer overruns.
  4398.     * chmod.c (change_dir_mode), cp.c (copy_dir), du.c
  4399.     (count_entry): Use savedir.
  4400.  
  4401. Thu Jun  7 03:52:02 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  4402.  
  4403.     * system.h (ST_BLKSIZE) [!STBLOCKS_MISSING]: If st_blksize is
  4404.     0 (as on pipe reads on some systems), use BSIZE instead.
  4405.     Define BSIZE as DEV_BSIZE if necessary.
  4406.  
  4407.     * Makefile, system.h, fileblocks.c: Use STBLOCKS_MISSING to
  4408.     control whether st_blksize and st_blocks are used.
  4409.     * Makefile, system.h, backupfile.c: Use DIRENT to control
  4410.     whether <dirent.h> is used.
  4411.  
  4412. Thu May 31 00:55:36 1990  David J. MacKenzie  (djm at apple-gunkies)
  4413.  
  4414.     * fileblocks.c: New file.
  4415.     * du.c (blocks_to_kb): Replace with convert_blocks macro.
  4416.     (main): Recognize new -k option.
  4417.     (usage): Document it.
  4418.     * ls.c (nblocks): Replace with convert_blocks macro.
  4419.     * system.h (ST_BLKSIZE) [USG]: Use BSIZE from sys/param.h instead of
  4420.     having the user define BLKSIZE.
  4421.     (ST_NBLOCKS) [USG]: Use st_blocks from fileblocks.c.
  4422.  
  4423. Wed May 23 00:40:39 1990  David J. MacKenzie  (djm at apple-gunkies)
  4424.  
  4425.     * argmatch.c: New file, taken from ls.c.
  4426.     * getversion.c (get_version): Use argmatch, to allow
  4427.     abbreviations.  Default backup type is existing_numbered.
  4428.     * mv.c (main), ln.c (main), cp.c (main): Only make backups if
  4429.     -b (+backup) is given.  If envar SIMPLE_BACKUP_SUFFIX is set,
  4430.     use it as a default instead of `~'.
  4431.     * mv.c (usage), ln.c (usage), cp-aux.c (usage): Update messages.
  4432.  
  4433. Tue May 22 00:56:51 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  4434.  
  4435.     * install.c: New file (from ../bin-src).
  4436.  
  4437.     * dd.c (copy): Don't count completely failed writes as partial
  4438.     writes.  Make buffers unsigned.  If blocking or unblocking,
  4439.     pad final partial buffer if necessary.
  4440.  
  4441.     * getversion.c: New file.
  4442.     * mv.c (main), cp.c (main), ln.c (main): Control backup types
  4443.     with getenv ("VERSION_CONTROL") and +version-control or -V.
  4444.  
  4445.     * cp.c (yesno), mv.c (yesno), ln.c (yesno): Stop reading if
  4446.     EOF reached as well as at newline.
  4447.  
  4448.     * backupfile.[ch]: Rename var `version_control' to `backup_type'.
  4449.  
  4450. Sat May 19 23:38:46 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  4451.  
  4452.     * touch.c: Change some error messages.  Include "getopt.h".
  4453.  
  4454. Sat May 19 00:16:50 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  4455.  
  4456.     * mv.c (main), ln.c (main), cp.c (main): Revise
  4457.     backup-creation options.
  4458.     * mv.c (usage), ln.c (usage), cp-aux.c (usage): Revise messages.
  4459.  
  4460.     * chmod.c (describe_change): Use mode_string instead of
  4461.     filemodestring.
  4462.  
  4463.     * cp.c (main): Recognize new options for making backups.
  4464.     * cp.c (copy): Make backups if requested.  Fix typo.
  4465.     * cp-aux.c (usage): Update message.
  4466.  
  4467.     * mv.c, cp.c: Remove code to conditionally use utimes instead
  4468.     of utime, since the extra resolution of utimes was not being
  4469.     used, the emulation overhead is probably insignificant,
  4470.     and utime is a standard function.
  4471.  
  4472.     * cp-hash.c: Fix up comments.
  4473.  
  4474. Fri May 18 23:06:23 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  4475.  
  4476.     * mv.c (do_move): Only make backup if dest file exists.
  4477.     Don't continue moving file if dest can't be backed up.
  4478.     * ln.c (do_link): Don't try to unlink dest if it was backed up.
  4479.     Don't continue moving file if dest can't be backed up.
  4480.  
  4481.     * system.h: Make SIGTYPE default to void if not defined.
  4482.  
  4483.     * modechange.[ch]: Rename struct and external functions to start
  4484.     with 'mode_'.
  4485.     * modechange.c (oatoi): Make static.
  4486.     (mode_compile): Take an additional arg indicating which
  4487.     symbolic operators should be affected by the umask.
  4488.     * modechange.h: Add defines for mode_compile arg mask.
  4489.     If __STDC__, use prototypes.
  4490.     * chmod.c, mkdir.c, mkfifo.c, create.c: Account for above changes.
  4491.  
  4492. Tue May 15 16:17:34 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  4493.  
  4494.     * dd.c (copy): Quit with nonzero status if final write fails.
  4495.  
  4496. Mon May 14 14:34:10 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  4497.  
  4498.     * dd.c: Make translation tables unsigned.
  4499.     (main): Give `input_file' and `output_file' nonzero values for
  4500.     stdin and stdout.
  4501.     (parse_conversion): Set new global vars 'space_character' and
  4502.     'newline_character' to correct values when translating to EBCDIC
  4503.     (either flavor).
  4504.     (copy): Use 'space_character' and 'newline_character' instead
  4505.     of hardcoded ASCII values.  Ignore attempts to seek on output pipe,
  4506.     socket, or fifo.  If possible, seek instead of reading to skip
  4507.     initial input records.  Sync with `space_character' instead of
  4508.     nulls, for POSIX.
  4509.  
  4510.     * cp.c (copy_reg): Compare lseek values as longs, not ints.
  4511.  
  4512. Sat May 12 01:16:42 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  4513.  
  4514.     * cp-hash (remember_created): Return error status instead of
  4515.     fatal error.
  4516.     * cp.c (copy): Change caller.
  4517.     (do_copy, copy_reg): Return error status instead of fatal error.
  4518.  
  4519.     * Move rename emulation from mv.c to dirlib.c so other
  4520.     programs can use it.
  4521.     * mv.c, ln.c (main): Recognize new options for making backups.
  4522.     * mv.c (do_move), ln.c (do_link): Make backups if requested.
  4523.     * mv.c, ln.c (usage): Update message.
  4524.     * backupfile.c, backupfile.h: New files.
  4525.  
  4526.     * cp.h: Ifdef out decl of umask because of SunOS 4.1 (POSIX) conflict.
  4527.  
  4528.     * Define all `main' functions as returning void.
  4529.  
  4530. Fri May 11 02:11:03 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  4531.  
  4532.     * ln.c, mv.c, rm.c, rmdir.c, create.c, chmod.c: Change some
  4533.     error messages.
  4534.  
  4535.     * du.c, cp-aux.c (error): Function removed.
  4536.     Change callers to use error.c version.
  4537.     * cp.c (copy, do_copy, copy_dir): Return an error status.
  4538.     * ls.c (error, fatal, perror_with_name): Functions removed.
  4539.     Change callers to use error.c.
  4540.  
  4541. Sat May  5 23:46:48 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  4542.  
  4543.     * ln.c (do_link): Don't allow trying to link a file to itself,
  4544.     because the source file would be removed if they are the same
  4545.     directory entry, and also for consistency with mv and cp.
  4546.  
  4547. Fri May  4 13:42:53 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  4548.  
  4549.     * cp.c (copy_reg): Only write a null to the end of the file if
  4550.     the end of the file was sparse.
  4551.  
  4552.     * ls.c (print_name_with_quoting): Make the char to print
  4553.     unsigned to prevent sign extension problems with -b.
  4554.  
  4555. Fri Apr 20 13:52:15 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  4556.  
  4557.     * Version 1.2 released.
  4558.  
  4559. Wed Apr 18 14:36:15 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  4560.  
  4561.     * Makefile: Use chsize for ftruncate on Xenix.
  4562.  
  4563.     * cp.c (copy): Remove broken code that attempted to
  4564.     substitute for ftruncate on systems missing it.
  4565.  
  4566. Mon Apr 16 13:58:01 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  4567.  
  4568.     * cp-aux.c (usage): Fix mistake in message.
  4569.  
  4570.     * Version 1.1 released.
  4571.  
  4572. Sat Apr 14 17:23:11 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  4573.  
  4574.     * ls.c (main): Don't remove leading path from program_name.
  4575.     (basename): Function removed.
  4576.     (length_of_file_name_and_frills): Don't add 1 for type indicator
  4577.     for block and character special files.
  4578.  
  4579. Thu Apr 12 19:50:15 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  4580.  
  4581.     * Makefile: Suggest using -DBLKSIZE=512 instead of 1024 for USG.
  4582.  
  4583.     * dd.c (copy): Print copying statistics when exiting because
  4584.     of a read or seek error.
  4585.     (interrupt_handler): New function.
  4586.     (main): Trap SIGINT to run interrupt_handler, for POSIX.
  4587.  
  4588. Tue Apr 10 01:09:38 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  4589.  
  4590.     * chmod.c (change_file_mode): Don't change the mode of
  4591.     symbolic links.
  4592.  
  4593. Mon Apr  9 13:30:00 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  4594.  
  4595.     * modechange.c (compile_mode): Return an error if an octal
  4596.     number argument is too large.
  4597.  
  4598. Sun Apr  8 20:33:20 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  4599.  
  4600.     * dd.c: Use `error' instead of `fatal' and `pfatal_with_name',
  4601.     for greater control of the message format.
  4602.     * head.c, tail.c: Use `error' instead of `fatal_perror' and
  4603.     `nonfatal_perror'.  Remove some unnecessary info from messages.
  4604.     * chmod.c, create.c, ln.c, mkdir.c, mkfifo.c, mv.c, mv_dir.c,
  4605.     rm.c, rmdir.c: Remove definition of `error'.
  4606.     * error.c: New file created from code in mv.c.
  4607.     * Makefile: Link the above programs with error.o.
  4608.  
  4609.     * ln.c (do_link): Use eaccess_stat to determine writability.
  4610.     * mv.c (do_move): Ditto.
  4611.     * rm.c (remove_file): Ditto.
  4612.     (remove_dir): Use eaccess_stat to determine readability and
  4613.     searchability.  Move initial interactive query here from
  4614.     clear_directory.
  4615.     * Makefile: Link ln, mv, and rm with eaccess.o.
  4616.  
  4617. Sat Apr  7 11:47:52 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  4618.  
  4619.     * Makefile: Link cp with eaccess.o.
  4620.     * eaccess.c: New file adapted from code in cp.c and cp-aux.c.
  4621.     * cp.c (copy): Use eaccess_stat to determine writability.
  4622.     Consider a file unwritable by root if it has no permissions.
  4623.     (main): Remove groups initialization code.
  4624.     * cp-aux.c (member): Function deleted.
  4625.  
  4626.     * cp.c (copy): Temporarily change the mode of directories if
  4627.     necessary to overwrite them when running recursively.
  4628.     Consider a directory to be non-overwritable if it lacks write
  4629.     permission as well as if it lacks execute permission.
  4630.  
  4631.     * rm.c, mv.c, mv_dir.c, chmod.c, create.c, ln.c: Remove some
  4632.     irrelevant or redundant information from error messages.
  4633.  
  4634. Fri Apr  6 15:20:45 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  4635.  
  4636.     * cp.c (copy): Only change mode of regular files and directories;
  4637.     others are already correct.
  4638.  
  4639. Thu Apr  5 04:31:56 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  4640.  
  4641.     * dd.c: Remove the vars that are set by command line options
  4642.     from a useless struct and give them more meaningful names.
  4643.  
  4644. Mon Apr  2 02:58:34 1990  David J. MacKenzie  (djm at spike.ai.mit.edu)
  4645.  
  4646.     * cp.c (main): Use NGROUPS from sys/param.h to determine
  4647.     whether BSD multiple groups are supported and how large to
  4648.     make the array.
  4649.     * Makefile: Remove references to GETGROUPS_MISSING.
  4650.  
  4651. Sun Apr  1 18:53:57 1990  David J. MacKenzie  (djm at spike.ai.mit.edu)
  4652.  
  4653.     * cp.c (main): Always initialize group info.
  4654.  
  4655. Sat Mar 31 22:29:57 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  4656.  
  4657.     * mv.c [RENAME_MISSING] (rename): To rename directories, run
  4658.     setuid root mv_dir program.
  4659.  
  4660. Tue Mar 20 14:28:25 1990  David J. MacKenzie  (djm at pogo.ai.mit.edu)
  4661.  
  4662.     * touch.c: Remove POSIX_COMPAT ifdef since there is no reason
  4663.     to disable the GNU extensions.
  4664.     (main): Set new global var `program_name'.
  4665.     (error): Replace with more versatile version.
  4666.     Global: Change calls to fprintf and error to use the new error.
  4667.     (main): Initialize global variables.  Don't bother making
  4668.     temporary copy of arg to -d.  Don't ignore any files named on
  4669.     the command line if -i is given.
  4670.     (usage): Don't take an arg.  Use `program_name' instead of
  4671.     hardcoded name.
  4672.     (touch): In utime emulation for BSD, ftruncate the file to its
  4673.     original size so empty files stay empty after being touched.
  4674.  
  4675. Sun Mar 18 01:02:39 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  4676.  
  4677.     * ln.c (strip_trailing_slashes): New function.
  4678.     (main, do_link): Call it.
  4679.  
  4680.     * cp-aux.c (strip_trailing_slashes): New function.
  4681.     * cp.c (do_copy): Call it.
  4682.     * cp.h: Declare it.
  4683.  
  4684.     * mv.c (strip_trailing_slashes): New function.
  4685.     (main, movefile): Call it.
  4686.  
  4687. Sat Mar 17 21:45:35 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  4688.  
  4689.     * cp-aux.c, cp.h: Rename user_confirm_overwriting to yesno and
  4690.     don't have it print a prompt, so it can be used in several
  4691.     places.
  4692.  
  4693.     * cp.c (do_copy): Change an error message to resemble mv's.
  4694.     Remove all trailing slashes from all non-option args.
  4695.     (main): Set new global var `stdin_not_tty'.
  4696.     (copy): Use POSIX method of handling file overwriting and
  4697.     prompting.
  4698.  
  4699.     * dirlib.c (mkdir): Use chmod to set the directory mode after
  4700.     successful creation, so set[ug]id and sticky bits are set
  4701.     correctly.
  4702.  
  4703. Thu Mar 15 12:33:23 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  4704.  
  4705.     * Makefile: Add commented out definitions for SCO Xenix.
  4706.  
  4707.     * ls.c (print_type_indicator): Don't print a '*' next to
  4708.     executable block or character special files.
  4709.  
  4710.     * chmod.c (error): New function, replacing nonfatal_perror,
  4711.     memory_out, and invalid_mode.
  4712.     Global: Call error instead of the above functions.
  4713.     (change_dir_mode): Make the new size of the path twice the
  4714.     size of the name that was too long, rather than twice its old
  4715.     size.
  4716.  
  4717.     * rm.c: Move interactive query about whether to remove a
  4718.     directory from remove_dir to clear_directory; only query for
  4719.     directories that are not empty.
  4720.  
  4721. Wed Mar 14 10:48:40 1990  David J. MacKenzie  (djm at rice-chex)
  4722.  
  4723.     * system.h [USG]: Define X_OK.
  4724.  
  4725.     * rm.c (main): Set new global var `stdin_not_tty'.
  4726.     (rm): Most of code moved to two new functions, remove_file and
  4727.     remove_dir.
  4728.     (remove_file): Use POSIX method of determining whether to remove
  4729.     non-directories.
  4730.     (remove_dir): Use POSIX method of determining whether to
  4731.     remove directories, almost.
  4732.     (perror_with_name): Function removed.
  4733.     (error): Simple version replaced with more powerful version.
  4734.     Global: Change calls to fprintf, perror_with_name, and old
  4735.     error to calls to new error.
  4736.  
  4737.     * ln.c (main): Set new global var `stdin_not_tty'.
  4738.     If force, turn off interactive.
  4739.     (do_link): By default, don't allow hard links to symbolic links to
  4740.     directories.  Use POSIX method of determining whether to
  4741.     overwrite destination.
  4742.     (yesno): Function renamed from confirm, and arg removed.
  4743.     (lisdir): Function removed.
  4744.  
  4745.     * mv.c (main): Set new global var `stdin_not_tty'.
  4746.     (yesno): Function renamed from yes.
  4747.     (do_move): Use POSIX method of determining whether to
  4748.     overwrite destination.
  4749.  
  4750.     * Makefile: Make executables depend on .o files, not .c files,
  4751.     to allow for parallel compilation.
  4752.  
  4753. Tue Mar 13 00:50:14 1990  David J. MacKenzie  (djm at rice-chex)
  4754.  
  4755.     * rm.c (main): Disallow removal of paths that have '..' as the
  4756.     final element.
  4757.     (basename): New function.
  4758.  
  4759.     * ls.c (print_type_indicator): Mark FIFOs with '|' and sockets
  4760.     with '='.
  4761.     (print_long_format): Print numbers as unsigned and add extra
  4762.     space for POSIX flag.
  4763.  
  4764.     * dd.c: Make the record counts unsigned.
  4765.     (quit): Print them as unsigned.
  4766.  
  4767.     * modechange.c (compile_mode): Only get umask value when needed.
  4768.     If users are not given or are `a', affect set?id and sticky bits.
  4769.     If memory is exhausted while allocating a new list element,
  4770.     free the old elements before returning.
  4771.  
  4772.     * Makefile (CC): Add comment noting that either fixincludes or
  4773.     -traditional needs to be used for gcc to compile ioctl calls
  4774.     correctly.
  4775.  
  4776. Mon Mar 12 16:25:23 1990  Jim Kingdon  (kingdon at pogo.ai.mit.edu)
  4777.  
  4778.     * touch.c [UTIME_OF_NULL_MISSING]: Call lseek() before write().
  4779.  
  4780.     * posixtime.y [__GNUC__]: Use __builtin_alloca.
  4781.  
  4782. Fri Mar  9 10:25:09 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  4783.  
  4784.     * chmod.c (main): Recognize "a,+-=" as valid options.
  4785.  
  4786.     * mv.c: Move the code to copy files across filesystems from
  4787.     do_move to a new function, copy, which will eventually be
  4788.     replaced with modules from cp and rm (POSIX requires mv to
  4789.     move directories recursively across filesystems).
  4790.     (do_move): Don't query about overriding a mode that prohibits
  4791.     writing if interactive.  Remove unneeded variable.
  4792.     (copy): Unlink target if copy fails partway through.
  4793.  
  4794. Thu Mar  8 10:56:16 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  4795.  
  4796.     * cp.c (copy): Don't remove a destination file of a different
  4797.     type unless +force is given.
  4798.  
  4799.     * ls.c (decode_switches, usage): Add -U (for "unsorted") as an
  4800.     equivalent to +sort=none.
  4801.  
  4802. Mon Mar  5 16:31:14 1990  Torbj|rn Granlund  (tege at echnaton)
  4803.  
  4804.     * cp.c (copy): Test for temporarily modified permission mode
  4805.       after the other test, so that `-p' work for files whose mode
  4806.       needed a temporary mode change.
  4807.     * cp.c (copy): Don't waste time calling unlink if we already
  4808.       know that the destination doesn't exists.
  4809.     * cp.c (comment before do_copy): Correct.
  4810.     * cp.c (comment before copy): Describe all params.
  4811.     * cp.c (copy): Only change permission mode for regular files
  4812.       and directories.
  4813.     * cp.c (copy): Unlink the destination file if its type is
  4814.       different from the source.  If the destination is a
  4815.       directory,  error.
  4816.  
  4817. Mon Mar  5 00:34:36 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  4818.  
  4819.     * chmod.c (nonfatal_perror): Don't check for force_silent.
  4820.     (change_file_mode, change_dir_mode): If force_silent, don't
  4821.     print error messages.
  4822.  
  4823.     * mv.c (main): If force, turn off interactive.
  4824.     (do_move): Simplify check for query.  Rename `stb' to
  4825.     `to_stats' and `stbf' to `from_stats'.
  4826.     Return error condition if original file could not be renamed or
  4827.     unlinked.
  4828.  
  4829.     * rm.c: Rename global `force_flag' to `ignore_errors' and change its
  4830.     meaning so that it does not overlap with `override_mode'.
  4831.     (main): Have -f +force set override_mode.  If override_mode is
  4832.     set, turn off interactive.
  4833.     (rm): Simplify checks for whether to query the user, based on
  4834.     the new relationship between override_mode and interactive.
  4835.  
  4836. Sun Mar  4 23:39:03 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  4837.  
  4838.     * ln.c (main): Reword an error message to be more like mv's.
  4839.  
  4840.     * rmdir.c: Move global `errors' into main instead of having
  4841.     error set it.
  4842.  
  4843.     * mkdir.c: Move global `errors' into main and have make_path
  4844.     return an error status instead of having error set it.
  4845.  
  4846.     * chmod.c: Move global `errors' into main and have
  4847.     change_file_mode and change_dir_mode return an error status
  4848.     instead of setting it in nonfatal_perror.
  4849.  
  4850. Sat Mar  3 13:59:40 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  4851.  
  4852.     * ln.c (main): Don't strip leading dirs from argv[0].
  4853.  
  4854.     * ln.c (confirm), mv.c (yes, do_move),
  4855.     cp-aux.c (user_confirm_overwriting), rm.c (rm, yesno, check_stack):
  4856.     Print query messages to stderr instead of stdout, for POSIX.
  4857.     Include program name in messages.
  4858.  
  4859. Sat Mar  3 11:27:27 1990  Torbj|rn Granlund  (tege at echnaton)
  4860.  
  4861.     * cp.c (copy): Don't unlink directories with flag_force
  4862.       (`-f').  Also avoid using force when not necessary.
  4863.       Always copy fifo's and symbolic links as themselves.
  4864.  
  4865.     * cp.c (copy_reg): Make int scan first, char scan then, to
  4866.       find first non-zero byte.  This to avoid false hole
  4867.       creation.
  4868.  
  4869. Sat Mar  3 10:22:28 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  4870.  
  4871.     * mv.c: Rename `pgm' to `program_name'.  Move global `errors'
  4872.     into main.  Have do_move and movefile return an error status
  4873.     instead having error set it.  Remove global vars `args'
  4874.     and `args_left'.
  4875.     (main): Rename `ac' and `av' to `argc' and `argv' and use them
  4876.     and `optind' instead of `args' and `args_left'.
  4877.  
  4878.     * cp.c (copy): Don't ignore errors other than EPERM from chown.
  4879.  
  4880. Fri Mar  2 16:20:57 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  4881.  
  4882.     * rm.c (main, usage): Allow -R as a synonym for -r, for POSIX.
  4883.  
  4884.     * cp.c (copy): If flag_preserve, preserve the owner and group
  4885.     if possible, as well as mode.
  4886.     (main): Allow -R as a synonym for -r option, for POSIX.
  4887.     * cp-aux.c (usage): Mention -R.
  4888.  
  4889. Tue Feb 27 11:49:04 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  4890.  
  4891.     * cp.c (copy): If not recursive, copy special files and
  4892.     symlinks like regular files and omit fifos.
  4893.  
  4894. Mon Feb 26 19:55:24 1990  Jim Kingdon  (kingdon at pogo.ai.mit.edu)
  4895.  
  4896.     * ls.c (print_long_format): If time is in the future, print the year.
  4897.     Make the cutoff for old files 6 months not 300 days.
  4898.  
  4899. Mon Feb 26 13:31:07 1990  Jim Kingdon  (kingdon at pogo.ai.mit.edu)
  4900.  
  4901.     * touch.c, Makefile: Use getdate.y instead of unctime.y.
  4902.  
  4903.     * touch.c: Remove posixtime.
  4904.     (main): Check for error from posixtime.
  4905.     posixtime.y: New file.
  4906.  
  4907.     * touch.c: Change a few cryptic error messages.
  4908.     Include <errno.h> not <sys/errno.h>.
  4909.     (just_set_amtime): New variable.
  4910.     (touch): Add if (just_set_amtime) code.
  4911.  
  4912. Mon Feb 26 15:03:29 1990  Torbj|rn Granlund  (tege at echnaton)
  4913.  
  4914.     * cp.c (copy): Test for recursive copy in DIR alternative in
  4915.       the switch statement, so all file types are copied correctly
  4916.       even in a non-recursive copy.
  4917.     * cp.c (copy): Return after having created a symlink, since
  4918.       chmod and utimes dereference, and would affect the symlink
  4919.       target.  Remove test for symlinks after switch.
  4920.  
  4921. Sun Feb 25 18:31:09 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  4922.  
  4923.     * Makefile: Compile ls after vdir so systems with a cc that
  4924.     can't do -c -o don't have to compile ls.c twice for ls.
  4925.  
  4926.     * dd.c (usage): Add braces around alternatives.
  4927.  
  4928.     * ls.c (print_long_format): Always print the group, for POSIX.
  4929.     (decode_switches): Make -g option a no-op for BSD users.
  4930.     (usage): Remove +group option.
  4931.  
  4932. Wed Feb 21 11:13:26 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  4933.  
  4934.     * ln.c (error): New function.
  4935.     (main, do_link): Call error instead of fprintf and exit.
  4936.     (main): Recognize new -d +directory option to allow superuser to
  4937.     make hard links to dirs, like the BSD ln -f option.
  4938.     (do_link): Don't allow hard links to dirs (they are hard to
  4939.     get rid of -- rmdir and unlink don't do it), unless -d was given.
  4940.     (usage): Mention -d +directory option.
  4941.  
  4942.     * rmdir.c (main): Remove trailing slashes from args (added by
  4943.     shell file completion but the rmdir syscall can't handle them).
  4944.     * mkdir.c (main): Remove trailing slashes from args, for
  4945.     uniformity with rmdir (you can't do file completion on dirs
  4946.     that haven't been made yet . . .).
  4947.  
  4948.     * mv.c: Rename global var `nargs' to `args_left' to avoid
  4949.     conflict with undocumented BSD libc function (the new name is
  4950.     clearer, anyway).
  4951.  
  4952. Tue Feb 20 17:09:19 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  4953.  
  4954.     * dd.c: Use new global var `program_name' in error messages
  4955.     instead of hardcoded "dd".
  4956.     (main): Set program_name from argv[0].
  4957.  
  4958.     * chmod.c, head.c, tail.c (main): Don't strip leading dirs
  4959.     from argv[0].
  4960.     (basename): Function removed.
  4961.  
  4962.     * rm.c (main): Don't strip leading dirs from argv[0].
  4963.  
  4964. Mon Feb 19 14:34:18 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  4965.  
  4966.     * rm.c (main): Strip trailing slashes from each arg.
  4967.  
  4968. Thu Feb 15 13:23:52 1990  David J. MacKenzie  (djm at rice-chex)
  4969.  
  4970.     * Makefile [HPUX CFLAGS]: Add -DUTIMES_MISSING.
  4971.  
  4972. Wed Feb 14 15:01:18 1990  David J. MacKenzie  (djm at rice-chex)
  4973.  
  4974.     * Makefile (dist): Don't make a non-compressed tar file.
  4975.  
  4976.     * mv.c (do_move): Refuse to copy non-regular files across filesystems.
  4977.  
  4978. Tue Feb 13 15:06:18 1990  Jim Kingdon  (kingdon at pogo.ai.mit.edu)
  4979.  
  4980.     * touch.c (getname): New function.
  4981.     (main): Use it.
  4982.  
  4983. Mon Feb 12 11:30:45 1990  David J. MacKenzie  (djm at rice-chex)
  4984.  
  4985.     * ln.c (do_link): Check error return from unlink.
  4986.     Include errno.h.
  4987.  
  4988.     * du.c (main): Check error return from stat.
  4989.     (str_copyc, str_concatc): Don't return a value, since it is
  4990.     ignored.
  4991.  
  4992.     * cp.c (copy): Check error return from unlink and chmod.  Fix
  4993.     typo in call to error.
  4994.  
  4995.     * mv.c (do_move): Check error return of fchmod/chmod and utime[s].
  4996.     (rename): Check error return of unlink.
  4997.  
  4998.     * Makefile Definitions of preprocessor macros moved from
  4999.     cp.c and mv.c.  HAVE_FTRUNCATE changed to FTRUNCATE_MISSING.
  5000.     * Makefile, dirlib.c: NEED_MKDIR changed to MKDIR_MISSING.
  5001.     * mv.c, cp.c: Change USG ifdefs to UTIMES_MISSING.
  5002.  
  5003. Sun Feb 11 17:50:29 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  5004.  
  5005.     * chmod.c (usage): Add yet another ellipsis.
  5006.  
  5007. Sun Feb 11 16:41:30 1990  Jim Kingdon  (kingdon at pogo.ai.mit.edu)
  5008.  
  5009.     * cp.c (copy_reg): Use HAVE_FTRUNCATE to decide whether to
  5010.     use ftruncate().
  5011.     (main): Use GETGROUPS_MISSING to decide whether to use getgroups().
  5012.     [hpux || !USG]: Define HAVE_FTRUNCATE.
  5013.     [USG && !hpux]: Define GETGROUPS_MISSING.
  5014.     mv.c (rename): Put in #ifdef RENAME_MISSING not #ifdef USG.
  5015.     (do_move): Use FCHMOD_MISSING to decide whether to use fchmod().
  5016.     [USG && !hpux]: Define FCHMOD_MISSING and RENAME_MISSING.
  5017.  
  5018. Fri Feb  9 10:25:03 1990  David J. MacKenzie  (djm at rice-chex)
  5019.  
  5020.     * mv.c (movefile): Remove trailing slashes from FROM (some
  5021.     filename completion systems add them for dirs, and they cause
  5022.     the rename syscall to fail).
  5023.  
  5024. Thu Feb  8 22:50:12 1990  Torbj|rn Granlund  (tege at sics.se)
  5025.  
  5026.     * cp.c (copy_reg): Change error handling after lseek, since
  5027.       this is a fatal error.  Also change error message to
  5028.       something more generally understood.
  5029.     * Handle files that end in a zero block on USG systems.
  5030.  
  5031.     * cp-aux.c (error): Use FATAL to recog fatal errs.
  5032.  
  5033. Thu Feb  8 21:25:40 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  5034.  
  5035.     * ln.c: Remove incorrect comment.
  5036.  
  5037.     * cp.c, cp-aux.c (usage): Change +dereference option to
  5038.     +no-dereference, since dereferencing is done by default and
  5039.     the option turns it off.
  5040.  
  5041. Mon Feb  5 17:29:20 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
  5042.  
  5043.     * Version 1.0 released.
  5044.  
  5045. Local Variables:
  5046. mode: indented-text
  5047. left-margin: 8
  5048. version-control: never
  5049. End:
  5050.